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