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