web_sys/features/
gen_HtmlLinkElement.rs

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