web_sys/features/
gen_NetworkResultOptions.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkResultOptions)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `NetworkResultOptions` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
12    pub type NetworkResultOptions;
13    #[doc = "Get the `broadcast` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
16    #[wasm_bindgen(method, getter = "broadcast")]
17    pub fn get_broadcast(this: &NetworkResultOptions) -> Option<bool>;
18    #[doc = "Change the `broadcast` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
21    #[wasm_bindgen(method, setter = "broadcast")]
22    pub fn set_broadcast(this: &NetworkResultOptions, val: bool);
23    #[doc = "Get the `curExternalIfname` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
26    #[wasm_bindgen(method, getter = "curExternalIfname")]
27    pub fn get_cur_external_ifname(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
28    #[doc = "Change the `curExternalIfname` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
31    #[wasm_bindgen(method, setter = "curExternalIfname")]
32    pub fn set_cur_external_ifname(this: &NetworkResultOptions, val: &str);
33    #[doc = "Get the `curInternalIfname` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
36    #[wasm_bindgen(method, getter = "curInternalIfname")]
37    pub fn get_cur_internal_ifname(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
38    #[doc = "Change the `curInternalIfname` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
41    #[wasm_bindgen(method, setter = "curInternalIfname")]
42    pub fn set_cur_internal_ifname(this: &NetworkResultOptions, val: &str);
43    #[doc = "Get the `dns1` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
46    #[wasm_bindgen(method, getter = "dns1")]
47    pub fn get_dns1(this: &NetworkResultOptions) -> Option<i32>;
48    #[doc = "Change the `dns1` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
51    #[wasm_bindgen(method, setter = "dns1")]
52    pub fn set_dns1(this: &NetworkResultOptions, val: i32);
53    #[doc = "Get the `dns1_str` field of this object."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
56    #[wasm_bindgen(method, getter = "dns1_str")]
57    pub fn get_dns1_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
58    #[doc = "Change the `dns1_str` field of this object."]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
61    #[wasm_bindgen(method, setter = "dns1_str")]
62    pub fn set_dns1_str(this: &NetworkResultOptions, val: &str);
63    #[doc = "Get the `dns2` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
66    #[wasm_bindgen(method, getter = "dns2")]
67    pub fn get_dns2(this: &NetworkResultOptions) -> Option<i32>;
68    #[doc = "Change the `dns2` field of this object."]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
71    #[wasm_bindgen(method, setter = "dns2")]
72    pub fn set_dns2(this: &NetworkResultOptions, val: i32);
73    #[doc = "Get the `dns2_str` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
76    #[wasm_bindgen(method, getter = "dns2_str")]
77    pub fn get_dns2_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
78    #[doc = "Change the `dns2_str` field of this object."]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
81    #[wasm_bindgen(method, setter = "dns2_str")]
82    pub fn set_dns2_str(this: &NetworkResultOptions, val: &str);
83    #[doc = "Get the `enable` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
86    #[wasm_bindgen(method, getter = "enable")]
87    pub fn get_enable(this: &NetworkResultOptions) -> Option<bool>;
88    #[doc = "Change the `enable` field of this object."]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
91    #[wasm_bindgen(method, setter = "enable")]
92    pub fn set_enable(this: &NetworkResultOptions, val: bool);
93    #[doc = "Get the `error` field of this object."]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
96    #[wasm_bindgen(method, getter = "error")]
97    pub fn get_error(this: &NetworkResultOptions) -> Option<bool>;
98    #[doc = "Change the `error` field of this object."]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
101    #[wasm_bindgen(method, setter = "error")]
102    pub fn set_error(this: &NetworkResultOptions, val: bool);
103    #[doc = "Get the `flag` field of this object."]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
106    #[wasm_bindgen(method, getter = "flag")]
107    pub fn get_flag(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
108    #[doc = "Change the `flag` field of this object."]
109    #[doc = ""]
110    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
111    #[wasm_bindgen(method, setter = "flag")]
112    pub fn set_flag(this: &NetworkResultOptions, val: &str);
113    #[doc = "Get the `gateway` field of this object."]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
116    #[wasm_bindgen(method, getter = "gateway")]
117    pub fn get_gateway(this: &NetworkResultOptions) -> Option<i32>;
118    #[doc = "Change the `gateway` field of this object."]
119    #[doc = ""]
120    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
121    #[wasm_bindgen(method, setter = "gateway")]
122    pub fn set_gateway(this: &NetworkResultOptions, val: i32);
123    #[doc = "Get the `gateway_str` field of this object."]
124    #[doc = ""]
125    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
126    #[wasm_bindgen(method, getter = "gateway_str")]
127    pub fn get_gateway_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
128    #[doc = "Change the `gateway_str` field of this object."]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
131    #[wasm_bindgen(method, setter = "gateway_str")]
132    pub fn set_gateway_str(this: &NetworkResultOptions, val: &str);
133    #[doc = "Get the `id` field of this object."]
134    #[doc = ""]
135    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
136    #[wasm_bindgen(method, getter = "id")]
137    pub fn get_id(this: &NetworkResultOptions) -> Option<i32>;
138    #[doc = "Change the `id` field of this object."]
139    #[doc = ""]
140    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
141    #[wasm_bindgen(method, setter = "id")]
142    pub fn set_id(this: &NetworkResultOptions, val: i32);
143    #[doc = "Get the `interfaceList` field of this object."]
144    #[doc = ""]
145    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
146    #[wasm_bindgen(method, getter = "interfaceList")]
147    pub fn get_interface_list(this: &NetworkResultOptions) -> Option<::js_sys::Array>;
148    #[doc = "Change the `interfaceList` field of this object."]
149    #[doc = ""]
150    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
151    #[wasm_bindgen(method, setter = "interfaceList")]
152    pub fn set_interface_list(this: &NetworkResultOptions, val: &::wasm_bindgen::JsValue);
153    #[doc = "Get the `ipAddr` field of this object."]
154    #[doc = ""]
155    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
156    #[wasm_bindgen(method, getter = "ipAddr")]
157    pub fn get_ip_addr(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
158    #[doc = "Change the `ipAddr` field of this object."]
159    #[doc = ""]
160    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
161    #[wasm_bindgen(method, setter = "ipAddr")]
162    pub fn set_ip_addr(this: &NetworkResultOptions, val: &str);
163    #[doc = "Get the `ipaddr` field of this object."]
164    #[doc = ""]
165    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
166    #[wasm_bindgen(method, getter = "ipaddr")]
167    pub fn get_ipaddr(this: &NetworkResultOptions) -> Option<i32>;
168    #[doc = "Change the `ipaddr` field of this object."]
169    #[doc = ""]
170    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
171    #[wasm_bindgen(method, setter = "ipaddr")]
172    pub fn set_ipaddr(this: &NetworkResultOptions, val: i32);
173    #[doc = "Get the `ipaddr_str` field of this object."]
174    #[doc = ""]
175    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
176    #[wasm_bindgen(method, getter = "ipaddr_str")]
177    pub fn get_ipaddr_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
178    #[doc = "Change the `ipaddr_str` field of this object."]
179    #[doc = ""]
180    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
181    #[wasm_bindgen(method, setter = "ipaddr_str")]
182    pub fn set_ipaddr_str(this: &NetworkResultOptions, val: &str);
183    #[doc = "Get the `lease` field of this object."]
184    #[doc = ""]
185    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
186    #[wasm_bindgen(method, getter = "lease")]
187    pub fn get_lease(this: &NetworkResultOptions) -> Option<i32>;
188    #[doc = "Change the `lease` field of this object."]
189    #[doc = ""]
190    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
191    #[wasm_bindgen(method, setter = "lease")]
192    pub fn set_lease(this: &NetworkResultOptions, val: i32);
193    #[doc = "Get the `macAddr` field of this object."]
194    #[doc = ""]
195    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
196    #[wasm_bindgen(method, getter = "macAddr")]
197    pub fn get_mac_addr(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
198    #[doc = "Change the `macAddr` field of this object."]
199    #[doc = ""]
200    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
201    #[wasm_bindgen(method, setter = "macAddr")]
202    pub fn set_mac_addr(this: &NetworkResultOptions, val: &str);
203    #[doc = "Get the `mask` field of this object."]
204    #[doc = ""]
205    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
206    #[wasm_bindgen(method, getter = "mask")]
207    pub fn get_mask(this: &NetworkResultOptions) -> Option<i32>;
208    #[doc = "Change the `mask` field of this object."]
209    #[doc = ""]
210    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
211    #[wasm_bindgen(method, setter = "mask")]
212    pub fn set_mask(this: &NetworkResultOptions, val: i32);
213    #[doc = "Get the `mask_str` field of this object."]
214    #[doc = ""]
215    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
216    #[wasm_bindgen(method, getter = "mask_str")]
217    pub fn get_mask_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
218    #[doc = "Change the `mask_str` field of this object."]
219    #[doc = ""]
220    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
221    #[wasm_bindgen(method, setter = "mask_str")]
222    pub fn set_mask_str(this: &NetworkResultOptions, val: &str);
223    #[doc = "Get the `netId` field of this object."]
224    #[doc = ""]
225    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
226    #[wasm_bindgen(method, getter = "netId")]
227    pub fn get_net_id(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
228    #[doc = "Change the `netId` field of this object."]
229    #[doc = ""]
230    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
231    #[wasm_bindgen(method, setter = "netId")]
232    pub fn set_net_id(this: &NetworkResultOptions, val: &str);
233    #[doc = "Get the `prefixLength` field of this object."]
234    #[doc = ""]
235    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
236    #[wasm_bindgen(method, getter = "prefixLength")]
237    pub fn get_prefix_length(this: &NetworkResultOptions) -> Option<i32>;
238    #[doc = "Change the `prefixLength` field of this object."]
239    #[doc = ""]
240    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
241    #[wasm_bindgen(method, setter = "prefixLength")]
242    pub fn set_prefix_length(this: &NetworkResultOptions, val: i32);
243    #[doc = "Get the `reason` field of this object."]
244    #[doc = ""]
245    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
246    #[wasm_bindgen(method, getter = "reason")]
247    pub fn get_reason(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
248    #[doc = "Change the `reason` field of this object."]
249    #[doc = ""]
250    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
251    #[wasm_bindgen(method, setter = "reason")]
252    pub fn set_reason(this: &NetworkResultOptions, val: &str);
253    #[doc = "Get the `reply` field of this object."]
254    #[doc = ""]
255    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
256    #[wasm_bindgen(method, getter = "reply")]
257    pub fn get_reply(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
258    #[doc = "Change the `reply` field of this object."]
259    #[doc = ""]
260    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
261    #[wasm_bindgen(method, setter = "reply")]
262    pub fn set_reply(this: &NetworkResultOptions, val: &str);
263    #[doc = "Get the `result` field of this object."]
264    #[doc = ""]
265    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
266    #[wasm_bindgen(method, getter = "result")]
267    pub fn get_result(this: &NetworkResultOptions) -> Option<bool>;
268    #[doc = "Change the `result` field of this object."]
269    #[doc = ""]
270    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
271    #[wasm_bindgen(method, setter = "result")]
272    pub fn set_result(this: &NetworkResultOptions, val: bool);
273    #[doc = "Get the `resultCode` field of this object."]
274    #[doc = ""]
275    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
276    #[wasm_bindgen(method, getter = "resultCode")]
277    pub fn get_result_code(this: &NetworkResultOptions) -> Option<i32>;
278    #[doc = "Change the `resultCode` field of this object."]
279    #[doc = ""]
280    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
281    #[wasm_bindgen(method, setter = "resultCode")]
282    pub fn set_result_code(this: &NetworkResultOptions, val: i32);
283    #[doc = "Get the `resultReason` field of this object."]
284    #[doc = ""]
285    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
286    #[wasm_bindgen(method, getter = "resultReason")]
287    pub fn get_result_reason(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
288    #[doc = "Change the `resultReason` field of this object."]
289    #[doc = ""]
290    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
291    #[wasm_bindgen(method, setter = "resultReason")]
292    pub fn set_result_reason(this: &NetworkResultOptions, val: &str);
293    #[doc = "Get the `ret` field of this object."]
294    #[doc = ""]
295    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
296    #[wasm_bindgen(method, getter = "ret")]
297    pub fn get_ret(this: &NetworkResultOptions) -> Option<bool>;
298    #[doc = "Change the `ret` field of this object."]
299    #[doc = ""]
300    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
301    #[wasm_bindgen(method, setter = "ret")]
302    pub fn set_ret(this: &NetworkResultOptions, val: bool);
303    #[doc = "Get the `route` field of this object."]
304    #[doc = ""]
305    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
306    #[wasm_bindgen(method, getter = "route")]
307    pub fn get_route(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
308    #[doc = "Change the `route` field of this object."]
309    #[doc = ""]
310    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
311    #[wasm_bindgen(method, setter = "route")]
312    pub fn set_route(this: &NetworkResultOptions, val: &str);
313    #[doc = "Get the `server` field of this object."]
314    #[doc = ""]
315    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
316    #[wasm_bindgen(method, getter = "server")]
317    pub fn get_server(this: &NetworkResultOptions) -> Option<i32>;
318    #[doc = "Change the `server` field of this object."]
319    #[doc = ""]
320    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
321    #[wasm_bindgen(method, setter = "server")]
322    pub fn set_server(this: &NetworkResultOptions, val: i32);
323    #[doc = "Get the `server_str` field of this object."]
324    #[doc = ""]
325    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
326    #[wasm_bindgen(method, getter = "server_str")]
327    pub fn get_server_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
328    #[doc = "Change the `server_str` field of this object."]
329    #[doc = ""]
330    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
331    #[wasm_bindgen(method, setter = "server_str")]
332    pub fn set_server_str(this: &NetworkResultOptions, val: &str);
333    #[doc = "Get the `success` field of this object."]
334    #[doc = ""]
335    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
336    #[wasm_bindgen(method, getter = "success")]
337    pub fn get_success(this: &NetworkResultOptions) -> Option<bool>;
338    #[doc = "Change the `success` field of this object."]
339    #[doc = ""]
340    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
341    #[wasm_bindgen(method, setter = "success")]
342    pub fn set_success(this: &NetworkResultOptions, val: bool);
343    #[doc = "Get the `topic` field of this object."]
344    #[doc = ""]
345    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
346    #[wasm_bindgen(method, getter = "topic")]
347    pub fn get_topic(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
348    #[doc = "Change the `topic` field of this object."]
349    #[doc = ""]
350    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
351    #[wasm_bindgen(method, setter = "topic")]
352    pub fn set_topic(this: &NetworkResultOptions, val: &str);
353    #[doc = "Get the `vendor_str` field of this object."]
354    #[doc = ""]
355    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
356    #[wasm_bindgen(method, getter = "vendor_str")]
357    pub fn get_vendor_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>;
358    #[doc = "Change the `vendor_str` field of this object."]
359    #[doc = ""]
360    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
361    #[wasm_bindgen(method, setter = "vendor_str")]
362    pub fn set_vendor_str(this: &NetworkResultOptions, val: &str);
363}
364impl NetworkResultOptions {
365    #[doc = "Construct a new `NetworkResultOptions`."]
366    #[doc = ""]
367    #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"]
368    pub fn new() -> Self {
369        #[allow(unused_mut)]
370        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
371        ret
372    }
373    #[deprecated = "Use `set_broadcast()` instead."]
374    pub fn broadcast(&mut self, val: bool) -> &mut Self {
375        self.set_broadcast(val);
376        self
377    }
378    #[deprecated = "Use `set_cur_external_ifname()` instead."]
379    pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self {
380        self.set_cur_external_ifname(val);
381        self
382    }
383    #[deprecated = "Use `set_cur_internal_ifname()` instead."]
384    pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self {
385        self.set_cur_internal_ifname(val);
386        self
387    }
388    #[deprecated = "Use `set_dns1()` instead."]
389    pub fn dns1(&mut self, val: i32) -> &mut Self {
390        self.set_dns1(val);
391        self
392    }
393    #[deprecated = "Use `set_dns1_str()` instead."]
394    pub fn dns1_str(&mut self, val: &str) -> &mut Self {
395        self.set_dns1_str(val);
396        self
397    }
398    #[deprecated = "Use `set_dns2()` instead."]
399    pub fn dns2(&mut self, val: i32) -> &mut Self {
400        self.set_dns2(val);
401        self
402    }
403    #[deprecated = "Use `set_dns2_str()` instead."]
404    pub fn dns2_str(&mut self, val: &str) -> &mut Self {
405        self.set_dns2_str(val);
406        self
407    }
408    #[deprecated = "Use `set_enable()` instead."]
409    pub fn enable(&mut self, val: bool) -> &mut Self {
410        self.set_enable(val);
411        self
412    }
413    #[deprecated = "Use `set_error()` instead."]
414    pub fn error(&mut self, val: bool) -> &mut Self {
415        self.set_error(val);
416        self
417    }
418    #[deprecated = "Use `set_flag()` instead."]
419    pub fn flag(&mut self, val: &str) -> &mut Self {
420        self.set_flag(val);
421        self
422    }
423    #[deprecated = "Use `set_gateway()` instead."]
424    pub fn gateway(&mut self, val: i32) -> &mut Self {
425        self.set_gateway(val);
426        self
427    }
428    #[deprecated = "Use `set_gateway_str()` instead."]
429    pub fn gateway_str(&mut self, val: &str) -> &mut Self {
430        self.set_gateway_str(val);
431        self
432    }
433    #[deprecated = "Use `set_id()` instead."]
434    pub fn id(&mut self, val: i32) -> &mut Self {
435        self.set_id(val);
436        self
437    }
438    #[deprecated = "Use `set_interface_list()` instead."]
439    pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
440        self.set_interface_list(val);
441        self
442    }
443    #[deprecated = "Use `set_ip_addr()` instead."]
444    pub fn ip_addr(&mut self, val: &str) -> &mut Self {
445        self.set_ip_addr(val);
446        self
447    }
448    #[deprecated = "Use `set_ipaddr()` instead."]
449    pub fn ipaddr(&mut self, val: i32) -> &mut Self {
450        self.set_ipaddr(val);
451        self
452    }
453    #[deprecated = "Use `set_ipaddr_str()` instead."]
454    pub fn ipaddr_str(&mut self, val: &str) -> &mut Self {
455        self.set_ipaddr_str(val);
456        self
457    }
458    #[deprecated = "Use `set_lease()` instead."]
459    pub fn lease(&mut self, val: i32) -> &mut Self {
460        self.set_lease(val);
461        self
462    }
463    #[deprecated = "Use `set_mac_addr()` instead."]
464    pub fn mac_addr(&mut self, val: &str) -> &mut Self {
465        self.set_mac_addr(val);
466        self
467    }
468    #[deprecated = "Use `set_mask()` instead."]
469    pub fn mask(&mut self, val: i32) -> &mut Self {
470        self.set_mask(val);
471        self
472    }
473    #[deprecated = "Use `set_mask_str()` instead."]
474    pub fn mask_str(&mut self, val: &str) -> &mut Self {
475        self.set_mask_str(val);
476        self
477    }
478    #[deprecated = "Use `set_net_id()` instead."]
479    pub fn net_id(&mut self, val: &str) -> &mut Self {
480        self.set_net_id(val);
481        self
482    }
483    #[deprecated = "Use `set_prefix_length()` instead."]
484    pub fn prefix_length(&mut self, val: i32) -> &mut Self {
485        self.set_prefix_length(val);
486        self
487    }
488    #[deprecated = "Use `set_reason()` instead."]
489    pub fn reason(&mut self, val: &str) -> &mut Self {
490        self.set_reason(val);
491        self
492    }
493    #[deprecated = "Use `set_reply()` instead."]
494    pub fn reply(&mut self, val: &str) -> &mut Self {
495        self.set_reply(val);
496        self
497    }
498    #[deprecated = "Use `set_result()` instead."]
499    pub fn result(&mut self, val: bool) -> &mut Self {
500        self.set_result(val);
501        self
502    }
503    #[deprecated = "Use `set_result_code()` instead."]
504    pub fn result_code(&mut self, val: i32) -> &mut Self {
505        self.set_result_code(val);
506        self
507    }
508    #[deprecated = "Use `set_result_reason()` instead."]
509    pub fn result_reason(&mut self, val: &str) -> &mut Self {
510        self.set_result_reason(val);
511        self
512    }
513    #[deprecated = "Use `set_ret()` instead."]
514    pub fn ret(&mut self, val: bool) -> &mut Self {
515        self.set_ret(val);
516        self
517    }
518    #[deprecated = "Use `set_route()` instead."]
519    pub fn route(&mut self, val: &str) -> &mut Self {
520        self.set_route(val);
521        self
522    }
523    #[deprecated = "Use `set_server()` instead."]
524    pub fn server(&mut self, val: i32) -> &mut Self {
525        self.set_server(val);
526        self
527    }
528    #[deprecated = "Use `set_server_str()` instead."]
529    pub fn server_str(&mut self, val: &str) -> &mut Self {
530        self.set_server_str(val);
531        self
532    }
533    #[deprecated = "Use `set_success()` instead."]
534    pub fn success(&mut self, val: bool) -> &mut Self {
535        self.set_success(val);
536        self
537    }
538    #[deprecated = "Use `set_topic()` instead."]
539    pub fn topic(&mut self, val: &str) -> &mut Self {
540        self.set_topic(val);
541        self
542    }
543    #[deprecated = "Use `set_vendor_str()` instead."]
544    pub fn vendor_str(&mut self, val: &str) -> &mut Self {
545        self.set_vendor_str(val);
546        self
547    }
548}
549impl Default for NetworkResultOptions {
550    fn default() -> Self {
551        Self::new()
552    }
553}