web_sys/features/
gen_ExtendableCookieChangeEventInit.rs1#![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 = "ExtendableCookieChangeEventInit"
10 )]
11 #[derive(Debug, Clone, PartialEq, Eq)]
12 #[doc = "The `ExtendableCookieChangeEventInit` dictionary."]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
15 pub type ExtendableCookieChangeEventInit;
16 #[doc = "Get the `bubbles` field of this object."]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
19 #[wasm_bindgen(method, getter = "bubbles")]
20 pub fn get_bubbles(this: &ExtendableCookieChangeEventInit) -> Option<bool>;
21 #[doc = "Change the `bubbles` field of this object."]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
24 #[wasm_bindgen(method, setter = "bubbles")]
25 pub fn set_bubbles(this: &ExtendableCookieChangeEventInit, val: bool);
26 #[doc = "Get the `cancelable` field of this object."]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
29 #[wasm_bindgen(method, getter = "cancelable")]
30 pub fn get_cancelable(this: &ExtendableCookieChangeEventInit) -> Option<bool>;
31 #[doc = "Change the `cancelable` field of this object."]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
34 #[wasm_bindgen(method, setter = "cancelable")]
35 pub fn set_cancelable(this: &ExtendableCookieChangeEventInit, val: bool);
36 #[doc = "Get the `composed` field of this object."]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
39 #[wasm_bindgen(method, getter = "composed")]
40 pub fn get_composed(this: &ExtendableCookieChangeEventInit) -> Option<bool>;
41 #[doc = "Change the `composed` field of this object."]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
44 #[wasm_bindgen(method, setter = "composed")]
45 pub fn set_composed(this: &ExtendableCookieChangeEventInit, val: bool);
46 #[doc = "Get the `changed` field of this object."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
49 #[wasm_bindgen(method, getter = "changed")]
50 pub fn get_changed(this: &ExtendableCookieChangeEventInit) -> Option<::js_sys::Array>;
51 #[doc = "Change the `changed` field of this object."]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
54 #[wasm_bindgen(method, setter = "changed")]
55 pub fn set_changed(this: &ExtendableCookieChangeEventInit, val: &::wasm_bindgen::JsValue);
56 #[doc = "Get the `deleted` field of this object."]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
59 #[wasm_bindgen(method, getter = "deleted")]
60 pub fn get_deleted(this: &ExtendableCookieChangeEventInit) -> Option<::js_sys::Array>;
61 #[doc = "Change the `deleted` field of this object."]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
64 #[wasm_bindgen(method, setter = "deleted")]
65 pub fn set_deleted(this: &ExtendableCookieChangeEventInit, val: &::wasm_bindgen::JsValue);
66}
67impl ExtendableCookieChangeEventInit {
68 #[doc = "Construct a new `ExtendableCookieChangeEventInit`."]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `ExtendableCookieChangeEventInit`*"]
71 pub fn new() -> Self {
72 #[allow(unused_mut)]
73 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
74 ret
75 }
76 #[deprecated = "Use `set_bubbles()` instead."]
77 pub fn bubbles(&mut self, val: bool) -> &mut Self {
78 self.set_bubbles(val);
79 self
80 }
81 #[deprecated = "Use `set_cancelable()` instead."]
82 pub fn cancelable(&mut self, val: bool) -> &mut Self {
83 self.set_cancelable(val);
84 self
85 }
86 #[deprecated = "Use `set_composed()` instead."]
87 pub fn composed(&mut self, val: bool) -> &mut Self {
88 self.set_composed(val);
89 self
90 }
91 #[deprecated = "Use `set_changed()` instead."]
92 pub fn changed(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
93 self.set_changed(val);
94 self
95 }
96 #[deprecated = "Use `set_deleted()` instead."]
97 pub fn deleted(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
98 self.set_deleted(val);
99 self
100 }
101}
102impl Default for ExtendableCookieChangeEventInit {
103 fn default() -> Self {
104 Self::new()
105 }
106}