web_sys/features/
gen_MutationObservingInfo.rs

1#![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 = MutationObservingInfo)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `MutationObservingInfo` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
12    pub type MutationObservingInfo;
13    #[doc = "Get the `animations` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
16    #[wasm_bindgen(method, getter = "animations")]
17    pub fn get_animations(this: &MutationObservingInfo) -> Option<bool>;
18    #[doc = "Change the `animations` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
21    #[wasm_bindgen(method, setter = "animations")]
22    pub fn set_animations(this: &MutationObservingInfo, val: bool);
23    #[doc = "Get the `attributeFilter` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
26    #[wasm_bindgen(method, getter = "attributeFilter")]
27    pub fn get_attribute_filter(this: &MutationObservingInfo) -> Option<::js_sys::Array>;
28    #[doc = "Change the `attributeFilter` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
31    #[wasm_bindgen(method, setter = "attributeFilter")]
32    pub fn set_attribute_filter(this: &MutationObservingInfo, val: &::wasm_bindgen::JsValue);
33    #[doc = "Get the `attributeOldValue` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
36    #[wasm_bindgen(method, getter = "attributeOldValue")]
37    pub fn get_attribute_old_value(this: &MutationObservingInfo) -> Option<bool>;
38    #[doc = "Change the `attributeOldValue` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
41    #[wasm_bindgen(method, setter = "attributeOldValue")]
42    pub fn set_attribute_old_value(this: &MutationObservingInfo, val: bool);
43    #[doc = "Get the `attributes` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
46    #[wasm_bindgen(method, getter = "attributes")]
47    pub fn get_attributes(this: &MutationObservingInfo) -> Option<bool>;
48    #[doc = "Change the `attributes` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
51    #[wasm_bindgen(method, setter = "attributes")]
52    pub fn set_attributes(this: &MutationObservingInfo, val: bool);
53    #[doc = "Get the `characterData` field of this object."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
56    #[wasm_bindgen(method, getter = "characterData")]
57    pub fn get_character_data(this: &MutationObservingInfo) -> Option<bool>;
58    #[doc = "Change the `characterData` field of this object."]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
61    #[wasm_bindgen(method, setter = "characterData")]
62    pub fn set_character_data(this: &MutationObservingInfo, val: bool);
63    #[doc = "Get the `characterDataOldValue` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
66    #[wasm_bindgen(method, getter = "characterDataOldValue")]
67    pub fn get_character_data_old_value(this: &MutationObservingInfo) -> Option<bool>;
68    #[doc = "Change the `characterDataOldValue` field of this object."]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
71    #[wasm_bindgen(method, setter = "characterDataOldValue")]
72    pub fn set_character_data_old_value(this: &MutationObservingInfo, val: bool);
73    #[doc = "Get the `childList` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
76    #[wasm_bindgen(method, getter = "childList")]
77    pub fn get_child_list(this: &MutationObservingInfo) -> Option<bool>;
78    #[doc = "Change the `childList` field of this object."]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
81    #[wasm_bindgen(method, setter = "childList")]
82    pub fn set_child_list(this: &MutationObservingInfo, val: bool);
83    #[doc = "Get the `nativeAnonymousChildList` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
86    #[wasm_bindgen(method, getter = "nativeAnonymousChildList")]
87    pub fn get_native_anonymous_child_list(this: &MutationObservingInfo) -> Option<bool>;
88    #[doc = "Change the `nativeAnonymousChildList` field of this object."]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
91    #[wasm_bindgen(method, setter = "nativeAnonymousChildList")]
92    pub fn set_native_anonymous_child_list(this: &MutationObservingInfo, val: bool);
93    #[doc = "Get the `subtree` field of this object."]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
96    #[wasm_bindgen(method, getter = "subtree")]
97    pub fn get_subtree(this: &MutationObservingInfo) -> Option<bool>;
98    #[doc = "Change the `subtree` field of this object."]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
101    #[wasm_bindgen(method, setter = "subtree")]
102    pub fn set_subtree(this: &MutationObservingInfo, val: bool);
103    #[cfg(feature = "Node")]
104    #[doc = "Get the `observedNode` field of this object."]
105    #[doc = ""]
106    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`, `Node`*"]
107    #[wasm_bindgen(method, getter = "observedNode")]
108    pub fn get_observed_node(this: &MutationObservingInfo) -> Option<Node>;
109    #[cfg(feature = "Node")]
110    #[doc = "Change the `observedNode` field of this object."]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`, `Node`*"]
113    #[wasm_bindgen(method, setter = "observedNode")]
114    pub fn set_observed_node(this: &MutationObservingInfo, val: Option<&Node>);
115}
116impl MutationObservingInfo {
117    #[doc = "Construct a new `MutationObservingInfo`."]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"]
120    pub fn new() -> Self {
121        #[allow(unused_mut)]
122        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
123        ret
124    }
125    #[deprecated = "Use `set_animations()` instead."]
126    pub fn animations(&mut self, val: bool) -> &mut Self {
127        self.set_animations(val);
128        self
129    }
130    #[deprecated = "Use `set_attribute_filter()` instead."]
131    pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
132        self.set_attribute_filter(val);
133        self
134    }
135    #[deprecated = "Use `set_attribute_old_value()` instead."]
136    pub fn attribute_old_value(&mut self, val: bool) -> &mut Self {
137        self.set_attribute_old_value(val);
138        self
139    }
140    #[deprecated = "Use `set_attributes()` instead."]
141    pub fn attributes(&mut self, val: bool) -> &mut Self {
142        self.set_attributes(val);
143        self
144    }
145    #[deprecated = "Use `set_character_data()` instead."]
146    pub fn character_data(&mut self, val: bool) -> &mut Self {
147        self.set_character_data(val);
148        self
149    }
150    #[deprecated = "Use `set_character_data_old_value()` instead."]
151    pub fn character_data_old_value(&mut self, val: bool) -> &mut Self {
152        self.set_character_data_old_value(val);
153        self
154    }
155    #[deprecated = "Use `set_child_list()` instead."]
156    pub fn child_list(&mut self, val: bool) -> &mut Self {
157        self.set_child_list(val);
158        self
159    }
160    #[deprecated = "Use `set_native_anonymous_child_list()` instead."]
161    pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self {
162        self.set_native_anonymous_child_list(val);
163        self
164    }
165    #[deprecated = "Use `set_subtree()` instead."]
166    pub fn subtree(&mut self, val: bool) -> &mut Self {
167        self.set_subtree(val);
168        self
169    }
170    #[cfg(feature = "Node")]
171    #[deprecated = "Use `set_observed_node()` instead."]
172    pub fn observed_node(&mut self, val: Option<&Node>) -> &mut Self {
173        self.set_observed_node(val);
174        self
175    }
176}
177impl Default for MutationObservingInfo {
178    fn default() -> Self {
179        Self::new()
180    }
181}