web_sys/features/
gen_CookieStoreManager.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CookieStoreManager , typescript_type = "CookieStoreManager")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `CookieStoreManager` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStoreManager)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `CookieStoreManager`*"]
14 pub type CookieStoreManager;
15 # [wasm_bindgen (method , structural , js_class = "CookieStoreManager" , js_name = getSubscriptions)]
16 #[doc = "The `getSubscriptions()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStoreManager/getSubscriptions)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `CookieStoreManager`*"]
21 pub fn get_subscriptions(this: &CookieStoreManager) -> ::js_sys::Promise;
22 # [wasm_bindgen (method , structural , js_class = "CookieStoreManager" , js_name = subscribe)]
23 #[doc = "The `subscribe()` method."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStoreManager/subscribe)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `CookieStoreManager`*"]
28 pub fn subscribe(
29 this: &CookieStoreManager,
30 subscriptions: &::wasm_bindgen::JsValue,
31 ) -> ::js_sys::Promise;
32 # [wasm_bindgen (method , structural , js_class = "CookieStoreManager" , js_name = unsubscribe)]
33 #[doc = "The `unsubscribe()` method."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStoreManager/unsubscribe)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `CookieStoreManager`*"]
38 pub fn unsubscribe(
39 this: &CookieStoreManager,
40 subscriptions: &::wasm_bindgen::JsValue,
41 ) -> ::js_sys::Promise;
42}