maxcountryman_web_sys/features/
gen_HtmlLinkElement.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLinkElement , typescript_type = "HTMLLinkElement")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `HtmlLinkElement` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
13 pub type HtmlLinkElement;
14 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = disabled)]
15 #[doc = "Getter for the `disabled` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
20 pub fn disabled(this: &HtmlLinkElement) -> bool;
21 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = disabled)]
22 #[doc = "Setter for the `disabled` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
27 pub fn set_disabled(this: &HtmlLinkElement, value: bool);
28 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = href)]
29 #[doc = "Getter for the `href` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
34 pub fn href(this: &HtmlLinkElement) -> String;
35 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = href)]
36 #[doc = "Setter for the `href` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
41 pub fn set_href(this: &HtmlLinkElement, value: &str);
42 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = crossOrigin)]
43 #[doc = "Getter for the `crossOrigin` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
48 pub fn cross_origin(this: &HtmlLinkElement) -> Option<String>;
49 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = crossOrigin)]
50 #[doc = "Setter for the `crossOrigin` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
55 pub fn set_cross_origin(this: &HtmlLinkElement, value: Option<&str>);
56 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = rel)]
57 #[doc = "Getter for the `rel` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
62 pub fn rel(this: &HtmlLinkElement) -> String;
63 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rel)]
64 #[doc = "Setter for the `rel` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
69 pub fn set_rel(this: &HtmlLinkElement, value: &str);
70 #[cfg(feature = "DomTokenList")]
71 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = relList)]
72 #[doc = "Getter for the `relList` field of this object."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/relList)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"]
77 pub fn rel_list(this: &HtmlLinkElement) -> DomTokenList;
78 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = media)]
79 #[doc = "Getter for the `media` field of this object."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
84 pub fn media(this: &HtmlLinkElement) -> String;
85 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = media)]
86 #[doc = "Setter for the `media` field of this object."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
91 pub fn set_media(this: &HtmlLinkElement, value: &str);
92 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = hreflang)]
93 #[doc = "Getter for the `hreflang` field of this object."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
98 pub fn hreflang(this: &HtmlLinkElement) -> String;
99 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = hreflang)]
100 #[doc = "Setter for the `hreflang` field of this object."]
101 #[doc = ""]
102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
105 pub fn set_hreflang(this: &HtmlLinkElement, value: &str);
106 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = type)]
107 #[doc = "Getter for the `type` field of this object."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
112 pub fn type_(this: &HtmlLinkElement) -> String;
113 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = type)]
114 #[doc = "Setter for the `type` field of this object."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
119 pub fn set_type(this: &HtmlLinkElement, value: &str);
120 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)]
121 #[doc = "Getter for the `referrerPolicy` field of this object."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
126 pub fn referrer_policy(this: &HtmlLinkElement) -> String;
127 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)]
128 #[doc = "Setter for the `referrerPolicy` field of this object."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
133 pub fn set_referrer_policy(this: &HtmlLinkElement, value: &str);
134 #[cfg(feature = "DomTokenList")]
135 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = sizes)]
136 #[doc = "Getter for the `sizes` field of this object."]
137 #[doc = ""]
138 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sizes)"]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"]
141 pub fn sizes(this: &HtmlLinkElement) -> DomTokenList;
142 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = charset)]
143 #[doc = "Getter for the `charset` field of this object."]
144 #[doc = ""]
145 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"]
146 #[doc = ""]
147 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
148 pub fn charset(this: &HtmlLinkElement) -> String;
149 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = charset)]
150 #[doc = "Setter for the `charset` field of this object."]
151 #[doc = ""]
152 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"]
153 #[doc = ""]
154 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
155 pub fn set_charset(this: &HtmlLinkElement, value: &str);
156 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = rev)]
157 #[doc = "Getter for the `rev` field of this object."]
158 #[doc = ""]
159 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"]
160 #[doc = ""]
161 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
162 pub fn rev(this: &HtmlLinkElement) -> String;
163 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rev)]
164 #[doc = "Setter for the `rev` field of this object."]
165 #[doc = ""]
166 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"]
167 #[doc = ""]
168 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
169 pub fn set_rev(this: &HtmlLinkElement, value: &str);
170 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = target)]
171 #[doc = "Getter for the `target` field of this object."]
172 #[doc = ""]
173 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"]
174 #[doc = ""]
175 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
176 pub fn target(this: &HtmlLinkElement) -> String;
177 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = target)]
178 #[doc = "Setter for the `target` field of this object."]
179 #[doc = ""]
180 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"]
181 #[doc = ""]
182 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
183 pub fn set_target(this: &HtmlLinkElement, value: &str);
184 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = integrity)]
185 #[doc = "Getter for the `integrity` field of this object."]
186 #[doc = ""]
187 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"]
188 #[doc = ""]
189 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
190 pub fn integrity(this: &HtmlLinkElement) -> String;
191 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = integrity)]
192 #[doc = "Setter for the `integrity` field of this object."]
193 #[doc = ""]
194 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"]
195 #[doc = ""]
196 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
197 pub fn set_integrity(this: &HtmlLinkElement, value: &str);
198 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = as)]
199 #[doc = "Getter for the `as` field of this object."]
200 #[doc = ""]
201 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"]
202 #[doc = ""]
203 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
204 pub fn as_(this: &HtmlLinkElement) -> String;
205 # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = as)]
206 #[doc = "Setter for the `as` field of this object."]
207 #[doc = ""]
208 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"]
211 pub fn set_as(this: &HtmlLinkElement, value: &str);
212 #[cfg(feature = "StyleSheet")]
213 # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = sheet)]
214 #[doc = "Getter for the `sheet` field of this object."]
215 #[doc = ""]
216 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sheet)"]
217 #[doc = ""]
218 #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`, `StyleSheet`*"]
219 pub fn sheet(this: &HtmlLinkElement) -> Option<StyleSheet>;
220}