summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_NetworkCommandOptions.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_NetworkCommandOptions.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_NetworkCommandOptions.rs')
-rw-r--r--vendor/web-sys/src/features/gen_NetworkCommandOptions.rs688
1 files changed, 688 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_NetworkCommandOptions.rs b/vendor/web-sys/src/features/gen_NetworkCommandOptions.rs
new file mode 100644
index 000000000..dbf06652e
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_NetworkCommandOptions.rs
@@ -0,0 +1,688 @@
+#![allow(unused_imports)]
+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;
+}
+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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cmd"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("curExternalIfname"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("curInternalIfname"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns1"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("dns1_long"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns2"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("dns2_long"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dnses"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("domain"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("enable"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("enabled"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("endIp"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("externalIfname"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("gateway"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("gateway_long"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("gateways"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ifname"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("interfaceList"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("internalIfname"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ip"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipaddr"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("link"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("maskLength"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mtu"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("preExternalIfname"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("preInternalIfname"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("prefixLength"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("report"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("security"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("serverIp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssid"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("startIp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("threshold"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("usbEndIp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("usbStartIp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("wifiEndIp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("wifiStartIp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ 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 {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("wifictrlinterfacename"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+impl Default for NetworkCommandOptions {
+ fn default() -> Self {
+ Self::new()
+ }
+}