Skip to main content

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