Skip to main content

web_sys/features/
gen_MutationRecord.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 = "MutationRecord",
10        typescript_type = "MutationRecord"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `MutationRecord` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"]
18    pub type MutationRecord;
19    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "type")]
20    #[doc = "Getter for the `type` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/type)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"]
25    pub fn type_(this: &MutationRecord) -> ::alloc::string::String;
26    #[cfg(feature = "Node")]
27    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "target")]
28    #[doc = "Getter for the `target` field of this object."]
29    #[doc = ""]
30    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/target)"]
31    #[doc = ""]
32    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"]
33    pub fn target(this: &MutationRecord) -> Option<Node>;
34    #[cfg(feature = "NodeList")]
35    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "addedNodes")]
36    #[doc = "Getter for the `addedNodes` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/addedNodes)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"]
41    pub fn added_nodes(this: &MutationRecord) -> NodeList;
42    #[cfg(feature = "NodeList")]
43    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "removedNodes")]
44    #[doc = "Getter for the `removedNodes` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/removedNodes)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"]
49    pub fn removed_nodes(this: &MutationRecord) -> NodeList;
50    #[cfg(feature = "Node")]
51    #[wasm_bindgen(
52        method,
53        getter,
54        js_class = "MutationRecord",
55        js_name = "previousSibling"
56    )]
57    #[doc = "Getter for the `previousSibling` field of this object."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/previousSibling)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"]
62    pub fn previous_sibling(this: &MutationRecord) -> Option<Node>;
63    #[cfg(feature = "Node")]
64    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "nextSibling")]
65    #[doc = "Getter for the `nextSibling` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/nextSibling)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"]
70    pub fn next_sibling(this: &MutationRecord) -> Option<Node>;
71    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "attributeName")]
72    #[doc = "Getter for the `attributeName` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeName)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"]
77    pub fn attribute_name(this: &MutationRecord) -> Option<::alloc::string::String>;
78    #[wasm_bindgen(
79        method,
80        getter,
81        js_class = "MutationRecord",
82        js_name = "attributeNamespace"
83    )]
84    #[doc = "Getter for the `attributeNamespace` field of this object."]
85    #[doc = ""]
86    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeNamespace)"]
87    #[doc = ""]
88    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"]
89    pub fn attribute_namespace(this: &MutationRecord) -> Option<::alloc::string::String>;
90    #[wasm_bindgen(method, getter, js_class = "MutationRecord", js_name = "oldValue")]
91    #[doc = "Getter for the `oldValue` field of this object."]
92    #[doc = ""]
93    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/oldValue)"]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"]
96    pub fn old_value(this: &MutationRecord) -> Option<::alloc::string::String>;
97}