Skip to main content

web_sys/features/
gen_HtmlScriptElement.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 = "HtmlElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "HTMLScriptElement",
14        typescript_type = "HTMLScriptElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlScriptElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
22    pub type HtmlScriptElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "src")]
24    #[doc = "Getter for the `src` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
29    pub fn src(this: &HtmlScriptElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "src")]
31    #[doc = "Setter for the `src` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
36    pub fn set_src(this: &HtmlScriptElement, value: &str);
37    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "type")]
38    #[doc = "Getter for the `type` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
43    pub fn type_(this: &HtmlScriptElement) -> ::alloc::string::String;
44    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "type")]
45    #[doc = "Setter for the `type` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
50    pub fn set_type(this: &HtmlScriptElement, value: &str);
51    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "noModule")]
52    #[doc = "Getter for the `noModule` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
57    pub fn no_module(this: &HtmlScriptElement) -> bool;
58    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "noModule")]
59    #[doc = "Setter for the `noModule` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
64    pub fn set_no_module(this: &HtmlScriptElement, value: bool);
65    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "charset")]
66    #[doc = "Getter for the `charset` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
71    pub fn charset(this: &HtmlScriptElement) -> ::alloc::string::String;
72    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "charset")]
73    #[doc = "Setter for the `charset` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
78    pub fn set_charset(this: &HtmlScriptElement, value: &str);
79    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "async")]
80    #[doc = "Getter for the `async` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
85    pub fn r#async(this: &HtmlScriptElement) -> bool;
86    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "async")]
87    #[doc = "Setter for the `async` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
92    pub fn set_async(this: &HtmlScriptElement, value: bool);
93    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "defer")]
94    #[doc = "Getter for the `defer` field of this object."]
95    #[doc = ""]
96    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
99    pub fn defer(this: &HtmlScriptElement) -> bool;
100    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "defer")]
101    #[doc = "Setter for the `defer` field of this object."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
106    pub fn set_defer(this: &HtmlScriptElement, value: bool);
107    #[wasm_bindgen(
108        method,
109        getter,
110        js_class = "HTMLScriptElement",
111        js_name = "crossOrigin"
112    )]
113    #[doc = "Getter for the `crossOrigin` field of this object."]
114    #[doc = ""]
115    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"]
116    #[doc = ""]
117    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
118    pub fn cross_origin(this: &HtmlScriptElement) -> Option<::alloc::string::String>;
119    #[wasm_bindgen(
120        method,
121        setter,
122        js_class = "HTMLScriptElement",
123        js_name = "crossOrigin"
124    )]
125    #[doc = "Setter for the `crossOrigin` field of this object."]
126    #[doc = ""]
127    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"]
128    #[doc = ""]
129    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
130    pub fn set_cross_origin(this: &HtmlScriptElement, value: Option<&str>);
131    #[wasm_bindgen(
132        catch,
133        method,
134        getter,
135        js_class = "HTMLScriptElement",
136        js_name = "text"
137    )]
138    #[doc = "Getter for the `text` field of this object."]
139    #[doc = ""]
140    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"]
141    #[doc = ""]
142    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
143    pub fn text(this: &HtmlScriptElement) -> Result<::alloc::string::String, JsValue>;
144    #[wasm_bindgen(
145        catch,
146        method,
147        setter,
148        js_class = "HTMLScriptElement",
149        js_name = "text"
150    )]
151    #[doc = "Setter for the `text` field of this object."]
152    #[doc = ""]
153    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"]
154    #[doc = ""]
155    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
156    pub fn set_text(this: &HtmlScriptElement, value: &str) -> Result<(), JsValue>;
157    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "event")]
158    #[doc = "Getter for the `event` field of this object."]
159    #[doc = ""]
160    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"]
161    #[doc = ""]
162    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
163    pub fn event(this: &HtmlScriptElement) -> ::alloc::string::String;
164    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "event")]
165    #[doc = "Setter for the `event` field of this object."]
166    #[doc = ""]
167    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"]
168    #[doc = ""]
169    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
170    pub fn set_event(this: &HtmlScriptElement, value: &str);
171    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "htmlFor")]
172    #[doc = "Getter for the `htmlFor` field of this object."]
173    #[doc = ""]
174    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"]
175    #[doc = ""]
176    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
177    pub fn html_for(this: &HtmlScriptElement) -> ::alloc::string::String;
178    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "htmlFor")]
179    #[doc = "Setter for the `htmlFor` field of this object."]
180    #[doc = ""]
181    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"]
182    #[doc = ""]
183    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
184    pub fn set_html_for(this: &HtmlScriptElement, value: &str);
185    #[wasm_bindgen(method, getter, js_class = "HTMLScriptElement", js_name = "integrity")]
186    #[doc = "Getter for the `integrity` field of this object."]
187    #[doc = ""]
188    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"]
189    #[doc = ""]
190    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
191    pub fn integrity(this: &HtmlScriptElement) -> ::alloc::string::String;
192    #[wasm_bindgen(method, setter, js_class = "HTMLScriptElement", js_name = "integrity")]
193    #[doc = "Setter for the `integrity` field of this object."]
194    #[doc = ""]
195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"]
196    #[doc = ""]
197    #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"]
198    pub fn set_integrity(this: &HtmlScriptElement, value: &str);
199}