Skip to main content

web_sys/features/
gen_CookieStoreManager.rs

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