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