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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkCommandOptions)]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `NetworkCommandOptions` dictionary."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub type NetworkCommandOptions;
    #[wasm_bindgen(method, setter = "cmd")]
    fn cmd_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "curExternalIfname")]
    fn cur_external_ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "curInternalIfname")]
    fn cur_internal_ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "dns1")]
    fn dns1_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "dns1_long")]
    fn dns1_long_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "dns2")]
    fn dns2_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "dns2_long")]
    fn dns2_long_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "dnses")]
    fn dnses_shim(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue);
    #[wasm_bindgen(method, setter = "domain")]
    fn domain_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "enable")]
    fn enable_shim(this: &NetworkCommandOptions, val: bool);
    #[wasm_bindgen(method, setter = "enabled")]
    fn enabled_shim(this: &NetworkCommandOptions, val: bool);
    #[wasm_bindgen(method, setter = "endIp")]
    fn end_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "externalIfname")]
    fn external_ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "gateway")]
    fn gateway_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "gateway_long")]
    fn gateway_long_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "gateways")]
    fn gateways_shim(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue);
    #[wasm_bindgen(method, setter = "id")]
    fn id_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "ifname")]
    fn ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "interfaceList")]
    fn interface_list_shim(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue);
    #[wasm_bindgen(method, setter = "internalIfname")]
    fn internal_ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "ip")]
    fn ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "ipaddr")]
    fn ipaddr_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "key")]
    fn key_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "link")]
    fn link_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "mask")]
    fn mask_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "maskLength")]
    fn mask_length_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "mode")]
    fn mode_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "mtu")]
    fn mtu_shim(this: &NetworkCommandOptions, val: i32);
    #[wasm_bindgen(method, setter = "preExternalIfname")]
    fn pre_external_ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "preInternalIfname")]
    fn pre_internal_ifname_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "prefix")]
    fn prefix_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "prefixLength")]
    fn prefix_length_shim(this: &NetworkCommandOptions, val: u32);
    #[wasm_bindgen(method, setter = "report")]
    fn report_shim(this: &NetworkCommandOptions, val: bool);
    #[wasm_bindgen(method, setter = "security")]
    fn security_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "serverIp")]
    fn server_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "ssid")]
    fn ssid_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "startIp")]
    fn start_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "threshold")]
    fn threshold_shim(this: &NetworkCommandOptions, val: f64);
    #[wasm_bindgen(method, setter = "usbEndIp")]
    fn usb_end_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "usbStartIp")]
    fn usb_start_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "wifiEndIp")]
    fn wifi_end_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "wifiStartIp")]
    fn wifi_start_ip_shim(this: &NetworkCommandOptions, val: &str);
    #[wasm_bindgen(method, setter = "wifictrlinterfacename")]
    fn wifictrlinterfacename_shim(this: &NetworkCommandOptions, val: &str);
}
impl NetworkCommandOptions {
    #[doc = "Construct a new `NetworkCommandOptions`."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn new() -> Self {
        #[allow(unused_mut)]
        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
        ret
    }
    #[doc = "Change the `cmd` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn cmd(&mut self, val: &str) -> &mut Self {
        self.cmd_shim(val);
        self
    }
    #[doc = "Change the `curExternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self {
        self.cur_external_ifname_shim(val);
        self
    }
    #[doc = "Change the `curInternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self {
        self.cur_internal_ifname_shim(val);
        self
    }
    #[doc = "Change the `dns1` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn dns1(&mut self, val: &str) -> &mut Self {
        self.dns1_shim(val);
        self
    }
    #[doc = "Change the `dns1_long` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn dns1_long(&mut self, val: i32) -> &mut Self {
        self.dns1_long_shim(val);
        self
    }
    #[doc = "Change the `dns2` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn dns2(&mut self, val: &str) -> &mut Self {
        self.dns2_shim(val);
        self
    }
    #[doc = "Change the `dns2_long` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn dns2_long(&mut self, val: i32) -> &mut Self {
        self.dns2_long_shim(val);
        self
    }
    #[doc = "Change the `dnses` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn dnses(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
        self.dnses_shim(val);
        self
    }
    #[doc = "Change the `domain` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn domain(&mut self, val: &str) -> &mut Self {
        self.domain_shim(val);
        self
    }
    #[doc = "Change the `enable` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn enable(&mut self, val: bool) -> &mut Self {
        self.enable_shim(val);
        self
    }
    #[doc = "Change the `enabled` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn enabled(&mut self, val: bool) -> &mut Self {
        self.enabled_shim(val);
        self
    }
    #[doc = "Change the `endIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn end_ip(&mut self, val: &str) -> &mut Self {
        self.end_ip_shim(val);
        self
    }
    #[doc = "Change the `externalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn external_ifname(&mut self, val: &str) -> &mut Self {
        self.external_ifname_shim(val);
        self
    }
    #[doc = "Change the `gateway` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn gateway(&mut self, val: &str) -> &mut Self {
        self.gateway_shim(val);
        self
    }
    #[doc = "Change the `gateway_long` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn gateway_long(&mut self, val: i32) -> &mut Self {
        self.gateway_long_shim(val);
        self
    }
    #[doc = "Change the `gateways` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn gateways(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
        self.gateways_shim(val);
        self
    }
    #[doc = "Change the `id` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn id(&mut self, val: i32) -> &mut Self {
        self.id_shim(val);
        self
    }
    #[doc = "Change the `ifname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn ifname(&mut self, val: &str) -> &mut Self {
        self.ifname_shim(val);
        self
    }
    #[doc = "Change the `interfaceList` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
        self.interface_list_shim(val);
        self
    }
    #[doc = "Change the `internalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn internal_ifname(&mut self, val: &str) -> &mut Self {
        self.internal_ifname_shim(val);
        self
    }
    #[doc = "Change the `ip` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn ip(&mut self, val: &str) -> &mut Self {
        self.ip_shim(val);
        self
    }
    #[doc = "Change the `ipaddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn ipaddr(&mut self, val: i32) -> &mut Self {
        self.ipaddr_shim(val);
        self
    }
    #[doc = "Change the `key` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn key(&mut self, val: &str) -> &mut Self {
        self.key_shim(val);
        self
    }
    #[doc = "Change the `link` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn link(&mut self, val: &str) -> &mut Self {
        self.link_shim(val);
        self
    }
    #[doc = "Change the `mask` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn mask(&mut self, val: i32) -> &mut Self {
        self.mask_shim(val);
        self
    }
    #[doc = "Change the `maskLength` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn mask_length(&mut self, val: &str) -> &mut Self {
        self.mask_length_shim(val);
        self
    }
    #[doc = "Change the `mode` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn mode(&mut self, val: &str) -> &mut Self {
        self.mode_shim(val);
        self
    }
    #[doc = "Change the `mtu` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn mtu(&mut self, val: i32) -> &mut Self {
        self.mtu_shim(val);
        self
    }
    #[doc = "Change the `preExternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn pre_external_ifname(&mut self, val: &str) -> &mut Self {
        self.pre_external_ifname_shim(val);
        self
    }
    #[doc = "Change the `preInternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn pre_internal_ifname(&mut self, val: &str) -> &mut Self {
        self.pre_internal_ifname_shim(val);
        self
    }
    #[doc = "Change the `prefix` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn prefix(&mut self, val: &str) -> &mut Self {
        self.prefix_shim(val);
        self
    }
    #[doc = "Change the `prefixLength` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn prefix_length(&mut self, val: u32) -> &mut Self {
        self.prefix_length_shim(val);
        self
    }
    #[doc = "Change the `report` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn report(&mut self, val: bool) -> &mut Self {
        self.report_shim(val);
        self
    }
    #[doc = "Change the `security` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn security(&mut self, val: &str) -> &mut Self {
        self.security_shim(val);
        self
    }
    #[doc = "Change the `serverIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn server_ip(&mut self, val: &str) -> &mut Self {
        self.server_ip_shim(val);
        self
    }
    #[doc = "Change the `ssid` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn ssid(&mut self, val: &str) -> &mut Self {
        self.ssid_shim(val);
        self
    }
    #[doc = "Change the `startIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn start_ip(&mut self, val: &str) -> &mut Self {
        self.start_ip_shim(val);
        self
    }
    #[doc = "Change the `threshold` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn threshold(&mut self, val: f64) -> &mut Self {
        self.threshold_shim(val);
        self
    }
    #[doc = "Change the `usbEndIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn usb_end_ip(&mut self, val: &str) -> &mut Self {
        self.usb_end_ip_shim(val);
        self
    }
    #[doc = "Change the `usbStartIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn usb_start_ip(&mut self, val: &str) -> &mut Self {
        self.usb_start_ip_shim(val);
        self
    }
    #[doc = "Change the `wifiEndIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn wifi_end_ip(&mut self, val: &str) -> &mut Self {
        self.wifi_end_ip_shim(val);
        self
    }
    #[doc = "Change the `wifiStartIp` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn wifi_start_ip(&mut self, val: &str) -> &mut Self {
        self.wifi_start_ip_shim(val);
        self
    }
    #[doc = "Change the `wifictrlinterfacename` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"]
    pub fn wifictrlinterfacename(&mut self, val: &str) -> &mut Self {
        self.wifictrlinterfacename_shim(val);
        self
    }
}
impl Default for NetworkCommandOptions {
    fn default() -> Self {
        Self::new()
    }
}