web_sys/features/
gen_UaDataValues.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UADataValues)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `UaDataValues` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
13 #[doc = ""]
14 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
16 pub type UaDataValues;
17 #[cfg(web_sys_unstable_apis)]
18 #[doc = "Get the `architecture` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 #[wasm_bindgen(method, getter = "architecture")]
25 pub fn get_architecture(this: &UaDataValues) -> Option<::alloc::string::String>;
26 #[cfg(web_sys_unstable_apis)]
27 #[doc = "Change the `architecture` field of this object."]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 #[wasm_bindgen(method, setter = "architecture")]
34 pub fn set_architecture(this: &UaDataValues, val: &str);
35 #[cfg(web_sys_unstable_apis)]
36 #[doc = "Get the `bitness` field of this object."]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 #[wasm_bindgen(method, getter = "bitness")]
43 pub fn get_bitness(this: &UaDataValues) -> Option<::alloc::string::String>;
44 #[cfg(web_sys_unstable_apis)]
45 #[doc = "Change the `bitness` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 #[wasm_bindgen(method, setter = "bitness")]
52 pub fn set_bitness(this: &UaDataValues, val: &str);
53 #[cfg(web_sys_unstable_apis)]
54 #[doc = "Get the `brands` field of this object."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
57 #[doc = ""]
58 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
60 #[wasm_bindgen(method, getter = "brands")]
61 pub fn get_brands(this: &UaDataValues) -> Option<::js_sys::Array>;
62 #[cfg(web_sys_unstable_apis)]
63 #[doc = "Change the `brands` field of this object."]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 #[wasm_bindgen(method, setter = "brands")]
70 pub fn set_brands(this: &UaDataValues, val: &::wasm_bindgen::JsValue);
71 #[cfg(web_sys_unstable_apis)]
72 #[doc = "Get the `formFactors` field of this object."]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
75 #[doc = ""]
76 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
78 #[wasm_bindgen(method, getter = "formFactors")]
79 pub fn get_form_factors(this: &UaDataValues) -> Option<::js_sys::Array>;
80 #[cfg(web_sys_unstable_apis)]
81 #[doc = "Change the `formFactors` field of this object."]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
84 #[doc = ""]
85 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
87 #[wasm_bindgen(method, setter = "formFactors")]
88 pub fn set_form_factors(this: &UaDataValues, val: &::wasm_bindgen::JsValue);
89 #[cfg(web_sys_unstable_apis)]
90 #[doc = "Get the `fullVersionList` field of this object."]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
93 #[doc = ""]
94 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
95 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
96 #[wasm_bindgen(method, getter = "fullVersionList")]
97 pub fn get_full_version_list(this: &UaDataValues) -> Option<::js_sys::Array>;
98 #[cfg(web_sys_unstable_apis)]
99 #[doc = "Change the `fullVersionList` field of this object."]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
102 #[doc = ""]
103 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
104 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
105 #[wasm_bindgen(method, setter = "fullVersionList")]
106 pub fn set_full_version_list(this: &UaDataValues, val: &::wasm_bindgen::JsValue);
107 #[cfg(web_sys_unstable_apis)]
108 #[doc = "Get the `mobile` field of this object."]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
111 #[doc = ""]
112 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
114 #[wasm_bindgen(method, getter = "mobile")]
115 pub fn get_mobile(this: &UaDataValues) -> Option<bool>;
116 #[cfg(web_sys_unstable_apis)]
117 #[doc = "Change the `mobile` field of this object."]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
120 #[doc = ""]
121 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
122 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
123 #[wasm_bindgen(method, setter = "mobile")]
124 pub fn set_mobile(this: &UaDataValues, val: bool);
125 #[cfg(web_sys_unstable_apis)]
126 #[doc = "Get the `model` field of this object."]
127 #[doc = ""]
128 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
129 #[doc = ""]
130 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
131 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
132 #[wasm_bindgen(method, getter = "model")]
133 pub fn get_model(this: &UaDataValues) -> Option<::alloc::string::String>;
134 #[cfg(web_sys_unstable_apis)]
135 #[doc = "Change the `model` field of this object."]
136 #[doc = ""]
137 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
138 #[doc = ""]
139 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
140 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
141 #[wasm_bindgen(method, setter = "model")]
142 pub fn set_model(this: &UaDataValues, val: &str);
143 #[cfg(web_sys_unstable_apis)]
144 #[doc = "Get the `platform` field of this object."]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
147 #[doc = ""]
148 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
149 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
150 #[wasm_bindgen(method, getter = "platform")]
151 pub fn get_platform(this: &UaDataValues) -> Option<::alloc::string::String>;
152 #[cfg(web_sys_unstable_apis)]
153 #[doc = "Change the `platform` field of this object."]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
156 #[doc = ""]
157 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
158 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
159 #[wasm_bindgen(method, setter = "platform")]
160 pub fn set_platform(this: &UaDataValues, val: &str);
161 #[cfg(web_sys_unstable_apis)]
162 #[doc = "Get the `platformVersion` field of this object."]
163 #[doc = ""]
164 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
165 #[doc = ""]
166 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
167 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
168 #[wasm_bindgen(method, getter = "platformVersion")]
169 pub fn get_platform_version(this: &UaDataValues) -> Option<::alloc::string::String>;
170 #[cfg(web_sys_unstable_apis)]
171 #[doc = "Change the `platformVersion` field of this object."]
172 #[doc = ""]
173 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
174 #[doc = ""]
175 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
176 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
177 #[wasm_bindgen(method, setter = "platformVersion")]
178 pub fn set_platform_version(this: &UaDataValues, val: &str);
179 #[cfg(web_sys_unstable_apis)]
180 #[doc = "Get the `wow64` field of this object."]
181 #[doc = ""]
182 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
183 #[doc = ""]
184 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
185 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
186 #[wasm_bindgen(method, getter = "wow64")]
187 pub fn get_wow64(this: &UaDataValues) -> Option<bool>;
188 #[cfg(web_sys_unstable_apis)]
189 #[doc = "Change the `wow64` field of this object."]
190 #[doc = ""]
191 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
192 #[doc = ""]
193 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
194 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
195 #[wasm_bindgen(method, setter = "wow64")]
196 pub fn set_wow64(this: &UaDataValues, val: bool);
197}
198#[cfg(web_sys_unstable_apis)]
199impl UaDataValues {
200 #[doc = "Construct a new `UaDataValues`."]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"]
203 #[doc = ""]
204 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
205 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
206 pub fn new() -> Self {
207 #[allow(unused_mut)]
208 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
209 ret
210 }
211 #[cfg(web_sys_unstable_apis)]
212 #[deprecated = "Use `set_architecture()` instead."]
213 pub fn architecture(&mut self, val: &str) -> &mut Self {
214 self.set_architecture(val);
215 self
216 }
217 #[cfg(web_sys_unstable_apis)]
218 #[deprecated = "Use `set_bitness()` instead."]
219 pub fn bitness(&mut self, val: &str) -> &mut Self {
220 self.set_bitness(val);
221 self
222 }
223 #[cfg(web_sys_unstable_apis)]
224 #[deprecated = "Use `set_brands()` instead."]
225 pub fn brands(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
226 self.set_brands(val);
227 self
228 }
229 #[cfg(web_sys_unstable_apis)]
230 #[deprecated = "Use `set_form_factors()` instead."]
231 pub fn form_factors(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
232 self.set_form_factors(val);
233 self
234 }
235 #[cfg(web_sys_unstable_apis)]
236 #[deprecated = "Use `set_full_version_list()` instead."]
237 pub fn full_version_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
238 self.set_full_version_list(val);
239 self
240 }
241 #[cfg(web_sys_unstable_apis)]
242 #[deprecated = "Use `set_mobile()` instead."]
243 pub fn mobile(&mut self, val: bool) -> &mut Self {
244 self.set_mobile(val);
245 self
246 }
247 #[cfg(web_sys_unstable_apis)]
248 #[deprecated = "Use `set_model()` instead."]
249 pub fn model(&mut self, val: &str) -> &mut Self {
250 self.set_model(val);
251 self
252 }
253 #[cfg(web_sys_unstable_apis)]
254 #[deprecated = "Use `set_platform()` instead."]
255 pub fn platform(&mut self, val: &str) -> &mut Self {
256 self.set_platform(val);
257 self
258 }
259 #[cfg(web_sys_unstable_apis)]
260 #[deprecated = "Use `set_platform_version()` instead."]
261 pub fn platform_version(&mut self, val: &str) -> &mut Self {
262 self.set_platform_version(val);
263 self
264 }
265 #[cfg(web_sys_unstable_apis)]
266 #[deprecated = "Use `set_wow64()` instead."]
267 pub fn wow64(&mut self, val: bool) -> &mut Self {
268 self.set_wow64(val);
269 self
270 }
271}
272#[cfg(web_sys_unstable_apis)]
273impl Default for UaDataValues {
274 fn default() -> Self {
275 Self::new()
276 }
277}