web_sys/features/
gen_HidReportItem.rs

1#![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 = HIDReportItem)]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `HidReportItem` dictionary."]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 HidReportItem;
17    #[cfg(web_sys_unstable_apis)]
18    #[doc = "Get the `hasNull` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "hasNull")]
25    pub fn get_has_null(this: &HidReportItem) -> Option<bool>;
26    #[cfg(web_sys_unstable_apis)]
27    #[doc = "Change the `hasNull` field of this object."]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "hasNull")]
34    pub fn set_has_null(this: &HidReportItem, val: bool);
35    #[cfg(web_sys_unstable_apis)]
36    #[doc = "Get the `hasPreferredState` field of this object."]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "hasPreferredState")]
43    pub fn get_has_preferred_state(this: &HidReportItem) -> Option<bool>;
44    #[cfg(web_sys_unstable_apis)]
45    #[doc = "Change the `hasPreferredState` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "hasPreferredState")]
52    pub fn set_has_preferred_state(this: &HidReportItem, val: bool);
53    #[cfg(web_sys_unstable_apis)]
54    #[doc = "Get the `isAbsolute` field of this object."]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isAbsolute")]
61    pub fn get_is_absolute(this: &HidReportItem) -> Option<bool>;
62    #[cfg(web_sys_unstable_apis)]
63    #[doc = "Change the `isAbsolute` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isAbsolute")]
70    pub fn set_is_absolute(this: &HidReportItem, val: bool);
71    #[cfg(web_sys_unstable_apis)]
72    #[doc = "Get the `isArray` field of this object."]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isArray")]
79    pub fn get_is_array(this: &HidReportItem) -> Option<bool>;
80    #[cfg(web_sys_unstable_apis)]
81    #[doc = "Change the `isArray` field of this object."]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isArray")]
88    pub fn set_is_array(this: &HidReportItem, val: bool);
89    #[cfg(web_sys_unstable_apis)]
90    #[doc = "Get the `isBufferedBytes` field of this object."]
91    #[doc = ""]
92    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isBufferedBytes")]
97    pub fn get_is_buffered_bytes(this: &HidReportItem) -> Option<bool>;
98    #[cfg(web_sys_unstable_apis)]
99    #[doc = "Change the `isBufferedBytes` field of this object."]
100    #[doc = ""]
101    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isBufferedBytes")]
106    pub fn set_is_buffered_bytes(this: &HidReportItem, val: bool);
107    #[cfg(web_sys_unstable_apis)]
108    #[doc = "Get the `isConstant` field of this object."]
109    #[doc = ""]
110    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isConstant")]
115    pub fn get_is_constant(this: &HidReportItem) -> Option<bool>;
116    #[cfg(web_sys_unstable_apis)]
117    #[doc = "Change the `isConstant` field of this object."]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isConstant")]
124    pub fn set_is_constant(this: &HidReportItem, val: bool);
125    #[cfg(web_sys_unstable_apis)]
126    #[doc = "Get the `isLinear` field of this object."]
127    #[doc = ""]
128    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isLinear")]
133    pub fn get_is_linear(this: &HidReportItem) -> Option<bool>;
134    #[cfg(web_sys_unstable_apis)]
135    #[doc = "Change the `isLinear` field of this object."]
136    #[doc = ""]
137    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isLinear")]
142    pub fn set_is_linear(this: &HidReportItem, val: bool);
143    #[cfg(web_sys_unstable_apis)]
144    #[doc = "Get the `isRange` field of this object."]
145    #[doc = ""]
146    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isRange")]
151    pub fn get_is_range(this: &HidReportItem) -> Option<bool>;
152    #[cfg(web_sys_unstable_apis)]
153    #[doc = "Change the `isRange` field of this object."]
154    #[doc = ""]
155    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isRange")]
160    pub fn set_is_range(this: &HidReportItem, val: bool);
161    #[cfg(web_sys_unstable_apis)]
162    #[doc = "Get the `isVolatile` field of this object."]
163    #[doc = ""]
164    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isVolatile")]
169    pub fn get_is_volatile(this: &HidReportItem) -> Option<bool>;
170    #[cfg(web_sys_unstable_apis)]
171    #[doc = "Change the `isVolatile` field of this object."]
172    #[doc = ""]
173    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "isVolatile")]
178    pub fn set_is_volatile(this: &HidReportItem, val: bool);
179    #[cfg(web_sys_unstable_apis)]
180    #[doc = "Get the `logicalMaximum` field of this object."]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "logicalMaximum")]
187    pub fn get_logical_maximum(this: &HidReportItem) -> Option<i32>;
188    #[cfg(web_sys_unstable_apis)]
189    #[doc = "Change the `logicalMaximum` field of this object."]
190    #[doc = ""]
191    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
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 = "logicalMaximum")]
196    pub fn set_logical_maximum(this: &HidReportItem, val: i32);
197    #[cfg(web_sys_unstable_apis)]
198    #[doc = "Get the `logicalMinimum` field of this object."]
199    #[doc = ""]
200    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
201    #[doc = ""]
202    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
203    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
204    #[wasm_bindgen(method, getter = "logicalMinimum")]
205    pub fn get_logical_minimum(this: &HidReportItem) -> Option<i32>;
206    #[cfg(web_sys_unstable_apis)]
207    #[doc = "Change the `logicalMinimum` field of this object."]
208    #[doc = ""]
209    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
210    #[doc = ""]
211    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
212    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
213    #[wasm_bindgen(method, setter = "logicalMinimum")]
214    pub fn set_logical_minimum(this: &HidReportItem, val: i32);
215    #[cfg(web_sys_unstable_apis)]
216    #[doc = "Get the `physicalMaximum` field of this object."]
217    #[doc = ""]
218    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
219    #[doc = ""]
220    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
221    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
222    #[wasm_bindgen(method, getter = "physicalMaximum")]
223    pub fn get_physical_maximum(this: &HidReportItem) -> Option<i32>;
224    #[cfg(web_sys_unstable_apis)]
225    #[doc = "Change the `physicalMaximum` field of this object."]
226    #[doc = ""]
227    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
228    #[doc = ""]
229    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
230    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
231    #[wasm_bindgen(method, setter = "physicalMaximum")]
232    pub fn set_physical_maximum(this: &HidReportItem, val: i32);
233    #[cfg(web_sys_unstable_apis)]
234    #[doc = "Get the `physicalMinimum` field of this object."]
235    #[doc = ""]
236    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
237    #[doc = ""]
238    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
239    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
240    #[wasm_bindgen(method, getter = "physicalMinimum")]
241    pub fn get_physical_minimum(this: &HidReportItem) -> Option<i32>;
242    #[cfg(web_sys_unstable_apis)]
243    #[doc = "Change the `physicalMinimum` field of this object."]
244    #[doc = ""]
245    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
246    #[doc = ""]
247    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
248    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
249    #[wasm_bindgen(method, setter = "physicalMinimum")]
250    pub fn set_physical_minimum(this: &HidReportItem, val: i32);
251    #[cfg(web_sys_unstable_apis)]
252    #[doc = "Get the `reportCount` field of this object."]
253    #[doc = ""]
254    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
255    #[doc = ""]
256    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
257    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
258    #[wasm_bindgen(method, getter = "reportCount")]
259    pub fn get_report_count(this: &HidReportItem) -> Option<u16>;
260    #[cfg(web_sys_unstable_apis)]
261    #[doc = "Change the `reportCount` field of this object."]
262    #[doc = ""]
263    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
264    #[doc = ""]
265    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
266    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
267    #[wasm_bindgen(method, setter = "reportCount")]
268    pub fn set_report_count(this: &HidReportItem, val: u16);
269    #[cfg(web_sys_unstable_apis)]
270    #[doc = "Get the `reportSize` field of this object."]
271    #[doc = ""]
272    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
273    #[doc = ""]
274    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
275    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
276    #[wasm_bindgen(method, getter = "reportSize")]
277    pub fn get_report_size(this: &HidReportItem) -> Option<u16>;
278    #[cfg(web_sys_unstable_apis)]
279    #[doc = "Change the `reportSize` field of this object."]
280    #[doc = ""]
281    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
282    #[doc = ""]
283    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
284    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
285    #[wasm_bindgen(method, setter = "reportSize")]
286    pub fn set_report_size(this: &HidReportItem, val: u16);
287    #[cfg(web_sys_unstable_apis)]
288    #[doc = "Get the `strings` field of this object."]
289    #[doc = ""]
290    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
291    #[doc = ""]
292    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
293    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
294    #[wasm_bindgen(method, getter = "strings")]
295    pub fn get_strings(this: &HidReportItem) -> Option<::js_sys::Array>;
296    #[cfg(web_sys_unstable_apis)]
297    #[doc = "Change the `strings` field of this object."]
298    #[doc = ""]
299    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
300    #[doc = ""]
301    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
302    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
303    #[wasm_bindgen(method, setter = "strings")]
304    pub fn set_strings(this: &HidReportItem, val: &::wasm_bindgen::JsValue);
305    #[cfg(web_sys_unstable_apis)]
306    #[doc = "Get the `unitExponent` field of this object."]
307    #[doc = ""]
308    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
309    #[doc = ""]
310    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
311    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
312    #[wasm_bindgen(method, getter = "unitExponent")]
313    pub fn get_unit_exponent(this: &HidReportItem) -> Option<i8>;
314    #[cfg(web_sys_unstable_apis)]
315    #[doc = "Change the `unitExponent` field of this object."]
316    #[doc = ""]
317    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
318    #[doc = ""]
319    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
320    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
321    #[wasm_bindgen(method, setter = "unitExponent")]
322    pub fn set_unit_exponent(this: &HidReportItem, val: i8);
323    #[cfg(web_sys_unstable_apis)]
324    #[doc = "Get the `unitFactorCurrentExponent` field of this object."]
325    #[doc = ""]
326    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
327    #[doc = ""]
328    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
329    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
330    #[wasm_bindgen(method, getter = "unitFactorCurrentExponent")]
331    pub fn get_unit_factor_current_exponent(this: &HidReportItem) -> Option<i8>;
332    #[cfg(web_sys_unstable_apis)]
333    #[doc = "Change the `unitFactorCurrentExponent` field of this object."]
334    #[doc = ""]
335    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
336    #[doc = ""]
337    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
338    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
339    #[wasm_bindgen(method, setter = "unitFactorCurrentExponent")]
340    pub fn set_unit_factor_current_exponent(this: &HidReportItem, val: i8);
341    #[cfg(web_sys_unstable_apis)]
342    #[doc = "Get the `unitFactorLengthExponent` field of this object."]
343    #[doc = ""]
344    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
345    #[doc = ""]
346    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
347    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
348    #[wasm_bindgen(method, getter = "unitFactorLengthExponent")]
349    pub fn get_unit_factor_length_exponent(this: &HidReportItem) -> Option<i8>;
350    #[cfg(web_sys_unstable_apis)]
351    #[doc = "Change the `unitFactorLengthExponent` field of this object."]
352    #[doc = ""]
353    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
354    #[doc = ""]
355    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
356    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
357    #[wasm_bindgen(method, setter = "unitFactorLengthExponent")]
358    pub fn set_unit_factor_length_exponent(this: &HidReportItem, val: i8);
359    #[cfg(web_sys_unstable_apis)]
360    #[doc = "Get the `unitFactorLuminousIntensityExponent` field of this object."]
361    #[doc = ""]
362    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
363    #[doc = ""]
364    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
365    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
366    #[wasm_bindgen(method, getter = "unitFactorLuminousIntensityExponent")]
367    pub fn get_unit_factor_luminous_intensity_exponent(this: &HidReportItem) -> Option<i8>;
368    #[cfg(web_sys_unstable_apis)]
369    #[doc = "Change the `unitFactorLuminousIntensityExponent` field of this object."]
370    #[doc = ""]
371    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
372    #[doc = ""]
373    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
374    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
375    #[wasm_bindgen(method, setter = "unitFactorLuminousIntensityExponent")]
376    pub fn set_unit_factor_luminous_intensity_exponent(this: &HidReportItem, val: i8);
377    #[cfg(web_sys_unstable_apis)]
378    #[doc = "Get the `unitFactorMassExponent` field of this object."]
379    #[doc = ""]
380    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
381    #[doc = ""]
382    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
383    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
384    #[wasm_bindgen(method, getter = "unitFactorMassExponent")]
385    pub fn get_unit_factor_mass_exponent(this: &HidReportItem) -> Option<i8>;
386    #[cfg(web_sys_unstable_apis)]
387    #[doc = "Change the `unitFactorMassExponent` field of this object."]
388    #[doc = ""]
389    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
390    #[doc = ""]
391    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
392    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
393    #[wasm_bindgen(method, setter = "unitFactorMassExponent")]
394    pub fn set_unit_factor_mass_exponent(this: &HidReportItem, val: i8);
395    #[cfg(web_sys_unstable_apis)]
396    #[doc = "Get the `unitFactorTemperatureExponent` field of this object."]
397    #[doc = ""]
398    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
399    #[doc = ""]
400    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
401    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
402    #[wasm_bindgen(method, getter = "unitFactorTemperatureExponent")]
403    pub fn get_unit_factor_temperature_exponent(this: &HidReportItem) -> Option<i8>;
404    #[cfg(web_sys_unstable_apis)]
405    #[doc = "Change the `unitFactorTemperatureExponent` field of this object."]
406    #[doc = ""]
407    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
408    #[doc = ""]
409    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
410    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
411    #[wasm_bindgen(method, setter = "unitFactorTemperatureExponent")]
412    pub fn set_unit_factor_temperature_exponent(this: &HidReportItem, val: i8);
413    #[cfg(web_sys_unstable_apis)]
414    #[doc = "Get the `unitFactorTimeExponent` field of this object."]
415    #[doc = ""]
416    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
417    #[doc = ""]
418    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
419    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
420    #[wasm_bindgen(method, getter = "unitFactorTimeExponent")]
421    pub fn get_unit_factor_time_exponent(this: &HidReportItem) -> Option<i8>;
422    #[cfg(web_sys_unstable_apis)]
423    #[doc = "Change the `unitFactorTimeExponent` field of this object."]
424    #[doc = ""]
425    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
426    #[doc = ""]
427    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
428    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
429    #[wasm_bindgen(method, setter = "unitFactorTimeExponent")]
430    pub fn set_unit_factor_time_exponent(this: &HidReportItem, val: i8);
431    #[cfg(web_sys_unstable_apis)]
432    #[cfg(feature = "HidUnitSystem")]
433    #[doc = "Get the `unitSystem` field of this object."]
434    #[doc = ""]
435    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`, `HidUnitSystem`*"]
436    #[doc = ""]
437    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
438    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
439    #[wasm_bindgen(method, getter = "unitSystem")]
440    pub fn get_unit_system(this: &HidReportItem) -> Option<HidUnitSystem>;
441    #[cfg(web_sys_unstable_apis)]
442    #[cfg(feature = "HidUnitSystem")]
443    #[doc = "Change the `unitSystem` field of this object."]
444    #[doc = ""]
445    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`, `HidUnitSystem`*"]
446    #[doc = ""]
447    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
448    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
449    #[wasm_bindgen(method, setter = "unitSystem")]
450    pub fn set_unit_system(this: &HidReportItem, val: HidUnitSystem);
451    #[cfg(web_sys_unstable_apis)]
452    #[doc = "Get the `usageMaximum` field of this object."]
453    #[doc = ""]
454    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
455    #[doc = ""]
456    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
457    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
458    #[wasm_bindgen(method, getter = "usageMaximum")]
459    pub fn get_usage_maximum(this: &HidReportItem) -> Option<u32>;
460    #[cfg(web_sys_unstable_apis)]
461    #[doc = "Change the `usageMaximum` field of this object."]
462    #[doc = ""]
463    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
464    #[doc = ""]
465    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
466    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
467    #[wasm_bindgen(method, setter = "usageMaximum")]
468    pub fn set_usage_maximum(this: &HidReportItem, val: u32);
469    #[cfg(web_sys_unstable_apis)]
470    #[doc = "Get the `usageMinimum` field of this object."]
471    #[doc = ""]
472    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
473    #[doc = ""]
474    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
475    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
476    #[wasm_bindgen(method, getter = "usageMinimum")]
477    pub fn get_usage_minimum(this: &HidReportItem) -> Option<u32>;
478    #[cfg(web_sys_unstable_apis)]
479    #[doc = "Change the `usageMinimum` field of this object."]
480    #[doc = ""]
481    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
482    #[doc = ""]
483    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
484    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
485    #[wasm_bindgen(method, setter = "usageMinimum")]
486    pub fn set_usage_minimum(this: &HidReportItem, val: u32);
487    #[cfg(web_sys_unstable_apis)]
488    #[doc = "Get the `usages` field of this object."]
489    #[doc = ""]
490    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
491    #[doc = ""]
492    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
493    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
494    #[wasm_bindgen(method, getter = "usages")]
495    pub fn get_usages(this: &HidReportItem) -> Option<::js_sys::Array>;
496    #[cfg(web_sys_unstable_apis)]
497    #[doc = "Change the `usages` field of this object."]
498    #[doc = ""]
499    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
500    #[doc = ""]
501    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
502    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
503    #[wasm_bindgen(method, setter = "usages")]
504    pub fn set_usages(this: &HidReportItem, val: &::wasm_bindgen::JsValue);
505    #[cfg(web_sys_unstable_apis)]
506    #[doc = "Get the `wrap` field of this object."]
507    #[doc = ""]
508    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
509    #[doc = ""]
510    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
511    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
512    #[wasm_bindgen(method, getter = "wrap")]
513    pub fn get_wrap(this: &HidReportItem) -> Option<bool>;
514    #[cfg(web_sys_unstable_apis)]
515    #[doc = "Change the `wrap` field of this object."]
516    #[doc = ""]
517    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
518    #[doc = ""]
519    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
520    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
521    #[wasm_bindgen(method, setter = "wrap")]
522    pub fn set_wrap(this: &HidReportItem, val: bool);
523}
524#[cfg(web_sys_unstable_apis)]
525impl HidReportItem {
526    #[doc = "Construct a new `HidReportItem`."]
527    #[doc = ""]
528    #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"]
529    #[doc = ""]
530    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
531    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
532    pub fn new() -> Self {
533        #[allow(unused_mut)]
534        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
535        ret
536    }
537    #[cfg(web_sys_unstable_apis)]
538    #[deprecated = "Use `set_has_null()` instead."]
539    pub fn has_null(&mut self, val: bool) -> &mut Self {
540        self.set_has_null(val);
541        self
542    }
543    #[cfg(web_sys_unstable_apis)]
544    #[deprecated = "Use `set_has_preferred_state()` instead."]
545    pub fn has_preferred_state(&mut self, val: bool) -> &mut Self {
546        self.set_has_preferred_state(val);
547        self
548    }
549    #[cfg(web_sys_unstable_apis)]
550    #[deprecated = "Use `set_is_absolute()` instead."]
551    pub fn is_absolute(&mut self, val: bool) -> &mut Self {
552        self.set_is_absolute(val);
553        self
554    }
555    #[cfg(web_sys_unstable_apis)]
556    #[deprecated = "Use `set_is_array()` instead."]
557    pub fn is_array(&mut self, val: bool) -> &mut Self {
558        self.set_is_array(val);
559        self
560    }
561    #[cfg(web_sys_unstable_apis)]
562    #[deprecated = "Use `set_is_buffered_bytes()` instead."]
563    pub fn is_buffered_bytes(&mut self, val: bool) -> &mut Self {
564        self.set_is_buffered_bytes(val);
565        self
566    }
567    #[cfg(web_sys_unstable_apis)]
568    #[deprecated = "Use `set_is_constant()` instead."]
569    pub fn is_constant(&mut self, val: bool) -> &mut Self {
570        self.set_is_constant(val);
571        self
572    }
573    #[cfg(web_sys_unstable_apis)]
574    #[deprecated = "Use `set_is_linear()` instead."]
575    pub fn is_linear(&mut self, val: bool) -> &mut Self {
576        self.set_is_linear(val);
577        self
578    }
579    #[cfg(web_sys_unstable_apis)]
580    #[deprecated = "Use `set_is_range()` instead."]
581    pub fn is_range(&mut self, val: bool) -> &mut Self {
582        self.set_is_range(val);
583        self
584    }
585    #[cfg(web_sys_unstable_apis)]
586    #[deprecated = "Use `set_is_volatile()` instead."]
587    pub fn is_volatile(&mut self, val: bool) -> &mut Self {
588        self.set_is_volatile(val);
589        self
590    }
591    #[cfg(web_sys_unstable_apis)]
592    #[deprecated = "Use `set_logical_maximum()` instead."]
593    pub fn logical_maximum(&mut self, val: i32) -> &mut Self {
594        self.set_logical_maximum(val);
595        self
596    }
597    #[cfg(web_sys_unstable_apis)]
598    #[deprecated = "Use `set_logical_minimum()` instead."]
599    pub fn logical_minimum(&mut self, val: i32) -> &mut Self {
600        self.set_logical_minimum(val);
601        self
602    }
603    #[cfg(web_sys_unstable_apis)]
604    #[deprecated = "Use `set_physical_maximum()` instead."]
605    pub fn physical_maximum(&mut self, val: i32) -> &mut Self {
606        self.set_physical_maximum(val);
607        self
608    }
609    #[cfg(web_sys_unstable_apis)]
610    #[deprecated = "Use `set_physical_minimum()` instead."]
611    pub fn physical_minimum(&mut self, val: i32) -> &mut Self {
612        self.set_physical_minimum(val);
613        self
614    }
615    #[cfg(web_sys_unstable_apis)]
616    #[deprecated = "Use `set_report_count()` instead."]
617    pub fn report_count(&mut self, val: u16) -> &mut Self {
618        self.set_report_count(val);
619        self
620    }
621    #[cfg(web_sys_unstable_apis)]
622    #[deprecated = "Use `set_report_size()` instead."]
623    pub fn report_size(&mut self, val: u16) -> &mut Self {
624        self.set_report_size(val);
625        self
626    }
627    #[cfg(web_sys_unstable_apis)]
628    #[deprecated = "Use `set_strings()` instead."]
629    pub fn strings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
630        self.set_strings(val);
631        self
632    }
633    #[cfg(web_sys_unstable_apis)]
634    #[deprecated = "Use `set_unit_exponent()` instead."]
635    pub fn unit_exponent(&mut self, val: i8) -> &mut Self {
636        self.set_unit_exponent(val);
637        self
638    }
639    #[cfg(web_sys_unstable_apis)]
640    #[deprecated = "Use `set_unit_factor_current_exponent()` instead."]
641    pub fn unit_factor_current_exponent(&mut self, val: i8) -> &mut Self {
642        self.set_unit_factor_current_exponent(val);
643        self
644    }
645    #[cfg(web_sys_unstable_apis)]
646    #[deprecated = "Use `set_unit_factor_length_exponent()` instead."]
647    pub fn unit_factor_length_exponent(&mut self, val: i8) -> &mut Self {
648        self.set_unit_factor_length_exponent(val);
649        self
650    }
651    #[cfg(web_sys_unstable_apis)]
652    #[deprecated = "Use `set_unit_factor_luminous_intensity_exponent()` instead."]
653    pub fn unit_factor_luminous_intensity_exponent(&mut self, val: i8) -> &mut Self {
654        self.set_unit_factor_luminous_intensity_exponent(val);
655        self
656    }
657    #[cfg(web_sys_unstable_apis)]
658    #[deprecated = "Use `set_unit_factor_mass_exponent()` instead."]
659    pub fn unit_factor_mass_exponent(&mut self, val: i8) -> &mut Self {
660        self.set_unit_factor_mass_exponent(val);
661        self
662    }
663    #[cfg(web_sys_unstable_apis)]
664    #[deprecated = "Use `set_unit_factor_temperature_exponent()` instead."]
665    pub fn unit_factor_temperature_exponent(&mut self, val: i8) -> &mut Self {
666        self.set_unit_factor_temperature_exponent(val);
667        self
668    }
669    #[cfg(web_sys_unstable_apis)]
670    #[deprecated = "Use `set_unit_factor_time_exponent()` instead."]
671    pub fn unit_factor_time_exponent(&mut self, val: i8) -> &mut Self {
672        self.set_unit_factor_time_exponent(val);
673        self
674    }
675    #[cfg(web_sys_unstable_apis)]
676    #[cfg(feature = "HidUnitSystem")]
677    #[deprecated = "Use `set_unit_system()` instead."]
678    pub fn unit_system(&mut self, val: HidUnitSystem) -> &mut Self {
679        self.set_unit_system(val);
680        self
681    }
682    #[cfg(web_sys_unstable_apis)]
683    #[deprecated = "Use `set_usage_maximum()` instead."]
684    pub fn usage_maximum(&mut self, val: u32) -> &mut Self {
685        self.set_usage_maximum(val);
686        self
687    }
688    #[cfg(web_sys_unstable_apis)]
689    #[deprecated = "Use `set_usage_minimum()` instead."]
690    pub fn usage_minimum(&mut self, val: u32) -> &mut Self {
691        self.set_usage_minimum(val);
692        self
693    }
694    #[cfg(web_sys_unstable_apis)]
695    #[deprecated = "Use `set_usages()` instead."]
696    pub fn usages(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
697        self.set_usages(val);
698        self
699    }
700    #[cfg(web_sys_unstable_apis)]
701    #[deprecated = "Use `set_wrap()` instead."]
702    pub fn wrap(&mut self, val: bool) -> &mut Self {
703        self.set_wrap(val);
704        self
705    }
706}
707#[cfg(web_sys_unstable_apis)]
708impl Default for HidReportItem {
709    fn default() -> Self {
710        Self::new()
711    }
712}