web_sys/features/
gen_CookieStore.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = CookieStore , typescript_type = "CookieStore")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `CookieStore` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
14 pub type CookieStore;
15 # [wasm_bindgen (structural , method , getter , js_class = "CookieStore" , js_name = onchange)]
16 #[doc = "Getter for the `onchange` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/onchange)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
21 pub fn onchange(this: &CookieStore) -> Option<::js_sys::Function>;
22 # [wasm_bindgen (structural , method , setter , js_class = "CookieStore" , js_name = onchange)]
23 #[doc = "Setter for the `onchange` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/onchange)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
28 pub fn set_onchange(this: &CookieStore, value: Option<&::js_sys::Function>);
29 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = delete)]
30 #[doc = "The `delete()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/delete)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
35 pub fn delete_with_name(this: &CookieStore, name: &str) -> ::js_sys::Promise;
36 #[cfg(feature = "CookieStoreDeleteOptions")]
37 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = delete)]
38 #[doc = "The `delete()` method."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/delete)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `CookieStore`, `CookieStoreDeleteOptions`*"]
43 pub fn delete_with_options(
44 this: &CookieStore,
45 options: &CookieStoreDeleteOptions,
46 ) -> ::js_sys::Promise;
47 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = get)]
48 #[doc = "The `get()` method."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/get)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
53 pub fn get_with_name(this: &CookieStore, name: &str) -> ::js_sys::Promise;
54 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = get)]
55 #[doc = "The `get()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/get)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
60 pub fn get(this: &CookieStore) -> ::js_sys::Promise;
61 #[cfg(feature = "CookieStoreGetOptions")]
62 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = get)]
63 #[doc = "The `get()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/get)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `CookieStore`, `CookieStoreGetOptions`*"]
68 pub fn get_with_cookie_store_get_options(
69 this: &CookieStore,
70 options: &CookieStoreGetOptions,
71 ) -> ::js_sys::Promise;
72 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = getAll)]
73 #[doc = "The `getAll()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/getAll)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
78 pub fn get_all_with_name(this: &CookieStore, name: &str) -> ::js_sys::Promise;
79 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = getAll)]
80 #[doc = "The `getAll()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/getAll)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
85 pub fn get_all(this: &CookieStore) -> ::js_sys::Promise;
86 #[cfg(feature = "CookieStoreGetOptions")]
87 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = getAll)]
88 #[doc = "The `getAll()` method."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/getAll)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `CookieStore`, `CookieStoreGetOptions`*"]
93 pub fn get_all_with_cookie_store_get_options(
94 this: &CookieStore,
95 options: &CookieStoreGetOptions,
96 ) -> ::js_sys::Promise;
97 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = set)]
98 #[doc = "The `set()` method."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/set)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `CookieStore`*"]
103 pub fn set_with_name_and_value(
104 this: &CookieStore,
105 name: &str,
106 value: &str,
107 ) -> ::js_sys::Promise;
108 #[cfg(feature = "CookieInit")]
109 # [wasm_bindgen (method , structural , js_class = "CookieStore" , js_name = set)]
110 #[doc = "The `set()` method."]
111 #[doc = ""]
112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/set)"]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `CookieInit`, `CookieStore`*"]
115 pub fn set_with_options(this: &CookieStore, options: &CookieInit) -> ::js_sys::Promise;
116}