web_sys/features/
gen_NetworkResultOptions.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
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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkResultOptions)]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `NetworkResultOptions` dictionary."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    pub type NetworkResultOptions;
    #[doc = "Get the `broadcast` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "broadcast")]
    pub fn get_broadcast(this: &NetworkResultOptions) -> Option<bool>;
    #[doc = "Change the `broadcast` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "broadcast")]
    pub fn set_broadcast(this: &NetworkResultOptions, val: bool);
    #[doc = "Get the `curExternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "curExternalIfname")]
    pub fn get_cur_external_ifname(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `curExternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "curExternalIfname")]
    pub fn set_cur_external_ifname(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `curInternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "curInternalIfname")]
    pub fn get_cur_internal_ifname(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `curInternalIfname` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "curInternalIfname")]
    pub fn set_cur_internal_ifname(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `dns1` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "dns1")]
    pub fn get_dns1(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `dns1` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "dns1")]
    pub fn set_dns1(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `dns1_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "dns1_str")]
    pub fn get_dns1_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `dns1_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "dns1_str")]
    pub fn set_dns1_str(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `dns2` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "dns2")]
    pub fn get_dns2(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `dns2` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "dns2")]
    pub fn set_dns2(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `dns2_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "dns2_str")]
    pub fn get_dns2_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `dns2_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "dns2_str")]
    pub fn set_dns2_str(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `enable` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "enable")]
    pub fn get_enable(this: &NetworkResultOptions) -> Option<bool>;
    #[doc = "Change the `enable` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "enable")]
    pub fn set_enable(this: &NetworkResultOptions, val: bool);
    #[doc = "Get the `error` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "error")]
    pub fn get_error(this: &NetworkResultOptions) -> Option<bool>;
    #[doc = "Change the `error` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "error")]
    pub fn set_error(this: &NetworkResultOptions, val: bool);
    #[doc = "Get the `flag` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "flag")]
    pub fn get_flag(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `flag` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "flag")]
    pub fn set_flag(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `gateway` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "gateway")]
    pub fn get_gateway(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `gateway` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "gateway")]
    pub fn set_gateway(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `gateway_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "gateway_str")]
    pub fn get_gateway_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `gateway_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "gateway_str")]
    pub fn set_gateway_str(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `id` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "id")]
    pub fn get_id(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `id` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "id")]
    pub fn set_id(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `interfaceList` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "interfaceList")]
    pub fn get_interface_list(this: &NetworkResultOptions) -> Option<::js_sys::Array>;
    #[doc = "Change the `interfaceList` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "interfaceList")]
    pub fn set_interface_list(this: &NetworkResultOptions, val: &::wasm_bindgen::JsValue);
    #[doc = "Get the `ipAddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "ipAddr")]
    pub fn get_ip_addr(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `ipAddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "ipAddr")]
    pub fn set_ip_addr(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `ipaddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "ipaddr")]
    pub fn get_ipaddr(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `ipaddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "ipaddr")]
    pub fn set_ipaddr(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `ipaddr_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "ipaddr_str")]
    pub fn get_ipaddr_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `ipaddr_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "ipaddr_str")]
    pub fn set_ipaddr_str(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `lease` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "lease")]
    pub fn get_lease(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `lease` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "lease")]
    pub fn set_lease(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `macAddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "macAddr")]
    pub fn get_mac_addr(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `macAddr` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "macAddr")]
    pub fn set_mac_addr(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `mask` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "mask")]
    pub fn get_mask(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `mask` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "mask")]
    pub fn set_mask(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `mask_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "mask_str")]
    pub fn get_mask_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `mask_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "mask_str")]
    pub fn set_mask_str(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `netId` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "netId")]
    pub fn get_net_id(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `netId` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "netId")]
    pub fn set_net_id(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `prefixLength` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "prefixLength")]
    pub fn get_prefix_length(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `prefixLength` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "prefixLength")]
    pub fn set_prefix_length(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `reason` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "reason")]
    pub fn get_reason(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `reason` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "reason")]
    pub fn set_reason(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `reply` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "reply")]
    pub fn get_reply(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `reply` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "reply")]
    pub fn set_reply(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `result` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "result")]
    pub fn get_result(this: &NetworkResultOptions) -> Option<bool>;
    #[doc = "Change the `result` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "result")]
    pub fn set_result(this: &NetworkResultOptions, val: bool);
    #[doc = "Get the `resultCode` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "resultCode")]
    pub fn get_result_code(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `resultCode` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "resultCode")]
    pub fn set_result_code(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `resultReason` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "resultReason")]
    pub fn get_result_reason(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `resultReason` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "resultReason")]
    pub fn set_result_reason(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `ret` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "ret")]
    pub fn get_ret(this: &NetworkResultOptions) -> Option<bool>;
    #[doc = "Change the `ret` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "ret")]
    pub fn set_ret(this: &NetworkResultOptions, val: bool);
    #[doc = "Get the `route` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "route")]
    pub fn get_route(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `route` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "route")]
    pub fn set_route(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `server` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "server")]
    pub fn get_server(this: &NetworkResultOptions) -> Option<i32>;
    #[doc = "Change the `server` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "server")]
    pub fn set_server(this: &NetworkResultOptions, val: i32);
    #[doc = "Get the `server_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "server_str")]
    pub fn get_server_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `server_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "server_str")]
    pub fn set_server_str(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `success` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "success")]
    pub fn get_success(this: &NetworkResultOptions) -> Option<bool>;
    #[doc = "Change the `success` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "success")]
    pub fn set_success(this: &NetworkResultOptions, val: bool);
    #[doc = "Get the `topic` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "topic")]
    pub fn get_topic(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `topic` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "topic")]
    pub fn set_topic(this: &NetworkResultOptions, val: &str);
    #[doc = "Get the `vendor_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, getter = "vendor_str")]
    pub fn get_vendor_str(this: &NetworkResultOptions) -> Option<String>;
    #[doc = "Change the `vendor_str` field of this object."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    #[wasm_bindgen(method, setter = "vendor_str")]
    pub fn set_vendor_str(this: &NetworkResultOptions, val: &str);
}
impl NetworkResultOptions {
    #[doc = "Construct a new `NetworkResultOptions`."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
    pub fn new() -> Self {
        #[allow(unused_mut)]
        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
        ret
    }
    #[deprecated = "Use `set_broadcast()` instead."]
    pub fn broadcast(&mut self, val: bool) -> &mut Self {
        self.set_broadcast(val);
        self
    }
    #[deprecated = "Use `set_cur_external_ifname()` instead."]
    pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self {
        self.set_cur_external_ifname(val);
        self
    }
    #[deprecated = "Use `set_cur_internal_ifname()` instead."]
    pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self {
        self.set_cur_internal_ifname(val);
        self
    }
    #[deprecated = "Use `set_dns1()` instead."]
    pub fn dns1(&mut self, val: i32) -> &mut Self {
        self.set_dns1(val);
        self
    }
    #[deprecated = "Use `set_dns1_str()` instead."]
    pub fn dns1_str(&mut self, val: &str) -> &mut Self {
        self.set_dns1_str(val);
        self
    }
    #[deprecated = "Use `set_dns2()` instead."]
    pub fn dns2(&mut self, val: i32) -> &mut Self {
        self.set_dns2(val);
        self
    }
    #[deprecated = "Use `set_dns2_str()` instead."]
    pub fn dns2_str(&mut self, val: &str) -> &mut Self {
        self.set_dns2_str(val);
        self
    }
    #[deprecated = "Use `set_enable()` instead."]
    pub fn enable(&mut self, val: bool) -> &mut Self {
        self.set_enable(val);
        self
    }
    #[deprecated = "Use `set_error()` instead."]
    pub fn error(&mut self, val: bool) -> &mut Self {
        self.set_error(val);
        self
    }
    #[deprecated = "Use `set_flag()` instead."]
    pub fn flag(&mut self, val: &str) -> &mut Self {
        self.set_flag(val);
        self
    }
    #[deprecated = "Use `set_gateway()` instead."]
    pub fn gateway(&mut self, val: i32) -> &mut Self {
        self.set_gateway(val);
        self
    }
    #[deprecated = "Use `set_gateway_str()` instead."]
    pub fn gateway_str(&mut self, val: &str) -> &mut Self {
        self.set_gateway_str(val);
        self
    }
    #[deprecated = "Use `set_id()` instead."]
    pub fn id(&mut self, val: i32) -> &mut Self {
        self.set_id(val);
        self
    }
    #[deprecated = "Use `set_interface_list()` instead."]
    pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
        self.set_interface_list(val);
        self
    }
    #[deprecated = "Use `set_ip_addr()` instead."]
    pub fn ip_addr(&mut self, val: &str) -> &mut Self {
        self.set_ip_addr(val);
        self
    }
    #[deprecated = "Use `set_ipaddr()` instead."]
    pub fn ipaddr(&mut self, val: i32) -> &mut Self {
        self.set_ipaddr(val);
        self
    }
    #[deprecated = "Use `set_ipaddr_str()` instead."]
    pub fn ipaddr_str(&mut self, val: &str) -> &mut Self {
        self.set_ipaddr_str(val);
        self
    }
    #[deprecated = "Use `set_lease()` instead."]
    pub fn lease(&mut self, val: i32) -> &mut Self {
        self.set_lease(val);
        self
    }
    #[deprecated = "Use `set_mac_addr()` instead."]
    pub fn mac_addr(&mut self, val: &str) -> &mut Self {
        self.set_mac_addr(val);
        self
    }
    #[deprecated = "Use `set_mask()` instead."]
    pub fn mask(&mut self, val: i32) -> &mut Self {
        self.set_mask(val);
        self
    }
    #[deprecated = "Use `set_mask_str()` instead."]
    pub fn mask_str(&mut self, val: &str) -> &mut Self {
        self.set_mask_str(val);
        self
    }
    #[deprecated = "Use `set_net_id()` instead."]
    pub fn net_id(&mut self, val: &str) -> &mut Self {
        self.set_net_id(val);
        self
    }
    #[deprecated = "Use `set_prefix_length()` instead."]
    pub fn prefix_length(&mut self, val: i32) -> &mut Self {
        self.set_prefix_length(val);
        self
    }
    #[deprecated = "Use `set_reason()` instead."]
    pub fn reason(&mut self, val: &str) -> &mut Self {
        self.set_reason(val);
        self
    }
    #[deprecated = "Use `set_reply()` instead."]
    pub fn reply(&mut self, val: &str) -> &mut Self {
        self.set_reply(val);
        self
    }
    #[deprecated = "Use `set_result()` instead."]
    pub fn result(&mut self, val: bool) -> &mut Self {
        self.set_result(val);
        self
    }
    #[deprecated = "Use `set_result_code()` instead."]
    pub fn result_code(&mut self, val: i32) -> &mut Self {
        self.set_result_code(val);
        self
    }
    #[deprecated = "Use `set_result_reason()` instead."]
    pub fn result_reason(&mut self, val: &str) -> &mut Self {
        self.set_result_reason(val);
        self
    }
    #[deprecated = "Use `set_ret()` instead."]
    pub fn ret(&mut self, val: bool) -> &mut Self {
        self.set_ret(val);
        self
    }
    #[deprecated = "Use `set_route()` instead."]
    pub fn route(&mut self, val: &str) -> &mut Self {
        self.set_route(val);
        self
    }
    #[deprecated = "Use `set_server()` instead."]
    pub fn server(&mut self, val: i32) -> &mut Self {
        self.set_server(val);
        self
    }
    #[deprecated = "Use `set_server_str()` instead."]
    pub fn server_str(&mut self, val: &str) -> &mut Self {
        self.set_server_str(val);
        self
    }
    #[deprecated = "Use `set_success()` instead."]
    pub fn success(&mut self, val: bool) -> &mut Self {
        self.set_success(val);
        self
    }
    #[deprecated = "Use `set_topic()` instead."]
    pub fn topic(&mut self, val: &str) -> &mut Self {
        self.set_topic(val);
        self
    }
    #[deprecated = "Use `set_vendor_str()` instead."]
    pub fn vendor_str(&mut self, val: &str) -> &mut Self {
        self.set_vendor_str(val);
        self
    }
}
impl Default for NetworkResultOptions {
    fn default() -> Self {
        Self::new()
    }
}