web_sys/features/
gen_Attr.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "Node",
9 extends = "EventTarget",
10 extends = "::js_sys::Object",
11 js_name = "Attr",
12 typescript_type = "Attr"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `Attr` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
20 pub type Attr;
21 #[wasm_bindgen(method, getter, js_class = "Attr", js_name = "localName")]
22 #[doc = "Getter for the `localName` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
27 pub fn local_name(this: &Attr) -> ::alloc::string::String;
28 #[wasm_bindgen(method, getter, js_class = "Attr", js_name = "value")]
29 #[doc = "Getter for the `value` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
34 pub fn value(this: &Attr) -> ::alloc::string::String;
35 #[wasm_bindgen(method, setter, js_class = "Attr", js_name = "value")]
36 #[doc = "Setter for the `value` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
41 pub fn set_value(this: &Attr, value: &str);
42 #[wasm_bindgen(method, getter, js_class = "Attr", js_name = "name")]
43 #[doc = "Getter for the `name` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/name)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
48 pub fn name(this: &Attr) -> ::alloc::string::String;
49 #[wasm_bindgen(method, getter, js_class = "Attr", js_name = "namespaceURI")]
50 #[doc = "Getter for the `namespaceURI` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
55 pub fn namespace_uri(this: &Attr) -> Option<::alloc::string::String>;
56 #[wasm_bindgen(method, getter, js_class = "Attr", js_name = "prefix")]
57 #[doc = "Getter for the `prefix` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
62 pub fn prefix(this: &Attr) -> Option<::alloc::string::String>;
63 #[wasm_bindgen(method, getter, js_class = "Attr", js_name = "specified")]
64 #[doc = "Getter for the `specified` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/specified)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `Attr`*"]
69 pub fn specified(this: &Attr) -> bool;
70}