|
| 1 | +#![allow(unused_imports)] |
| 2 | +#![allow(clippy::all)] |
| 3 | +use super::*; |
| 4 | +use wasm_bindgen::prelude::*; |
| 5 | +#[cfg(web_sys_unstable_apis)] |
| 6 | +#[wasm_bindgen] |
| 7 | +extern "C" { |
| 8 | + # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UADataValues)] |
| 9 | + #[derive(Debug, Clone, PartialEq, Eq)] |
| 10 | + #[doc = "The `UaDataValues` dictionary."] |
| 11 | + #[doc = ""] |
| 12 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 13 | + #[doc = ""] |
| 14 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 15 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 16 | + pub type UaDataValues; |
| 17 | + #[wasm_bindgen(method, setter = "architecture")] |
| 18 | + fn architecture_shim(this: &UaDataValues, val: &str); |
| 19 | + #[wasm_bindgen(method, setter = "bitness")] |
| 20 | + fn bitness_shim(this: &UaDataValues, val: &str); |
| 21 | + #[wasm_bindgen(method, setter = "brands")] |
| 22 | + fn brands_shim(this: &UaDataValues, val: &::wasm_bindgen::JsValue); |
| 23 | + #[wasm_bindgen(method, setter = "formFactors")] |
| 24 | + fn form_factors_shim(this: &UaDataValues, val: &::wasm_bindgen::JsValue); |
| 25 | + #[wasm_bindgen(method, setter = "fullVersionList")] |
| 26 | + fn full_version_list_shim(this: &UaDataValues, val: &::wasm_bindgen::JsValue); |
| 27 | + #[wasm_bindgen(method, setter = "mobile")] |
| 28 | + fn mobile_shim(this: &UaDataValues, val: bool); |
| 29 | + #[wasm_bindgen(method, setter = "model")] |
| 30 | + fn model_shim(this: &UaDataValues, val: &str); |
| 31 | + #[wasm_bindgen(method, setter = "platform")] |
| 32 | + fn platform_shim(this: &UaDataValues, val: &str); |
| 33 | + #[wasm_bindgen(method, setter = "platformVersion")] |
| 34 | + fn platform_version_shim(this: &UaDataValues, val: &str); |
| 35 | + #[wasm_bindgen(method, setter = "wow64")] |
| 36 | + fn wow64_shim(this: &UaDataValues, val: bool); |
| 37 | +} |
| 38 | +#[cfg(web_sys_unstable_apis)] |
| 39 | +impl UaDataValues { |
| 40 | + #[doc = "Construct a new `UaDataValues`."] |
| 41 | + #[doc = ""] |
| 42 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 43 | + #[doc = ""] |
| 44 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 45 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 46 | + pub fn new() -> Self { |
| 47 | + #[allow(unused_mut)] |
| 48 | + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); |
| 49 | + ret |
| 50 | + } |
| 51 | + #[cfg(web_sys_unstable_apis)] |
| 52 | + #[doc = "Change the `architecture` field of this object."] |
| 53 | + #[doc = ""] |
| 54 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 55 | + #[doc = ""] |
| 56 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 57 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 58 | + pub fn architecture(&mut self, val: &str) -> &mut Self { |
| 59 | + self.architecture_shim(val); |
| 60 | + self |
| 61 | + } |
| 62 | + #[cfg(web_sys_unstable_apis)] |
| 63 | + #[doc = "Change the `bitness` field of this object."] |
| 64 | + #[doc = ""] |
| 65 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 66 | + #[doc = ""] |
| 67 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 68 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 69 | + pub fn bitness(&mut self, val: &str) -> &mut Self { |
| 70 | + self.bitness_shim(val); |
| 71 | + self |
| 72 | + } |
| 73 | + #[cfg(web_sys_unstable_apis)] |
| 74 | + #[doc = "Change the `brands` field of this object."] |
| 75 | + #[doc = ""] |
| 76 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 77 | + #[doc = ""] |
| 78 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 79 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 80 | + pub fn brands(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { |
| 81 | + self.brands_shim(val); |
| 82 | + self |
| 83 | + } |
| 84 | + #[cfg(web_sys_unstable_apis)] |
| 85 | + #[doc = "Change the `formFactors` field of this object."] |
| 86 | + #[doc = ""] |
| 87 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 88 | + #[doc = ""] |
| 89 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 90 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 91 | + pub fn form_factors(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { |
| 92 | + self.form_factors_shim(val); |
| 93 | + self |
| 94 | + } |
| 95 | + #[cfg(web_sys_unstable_apis)] |
| 96 | + #[doc = "Change the `fullVersionList` field of this object."] |
| 97 | + #[doc = ""] |
| 98 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 99 | + #[doc = ""] |
| 100 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 101 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 102 | + pub fn full_version_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { |
| 103 | + self.full_version_list_shim(val); |
| 104 | + self |
| 105 | + } |
| 106 | + #[cfg(web_sys_unstable_apis)] |
| 107 | + #[doc = "Change the `mobile` field of this object."] |
| 108 | + #[doc = ""] |
| 109 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 110 | + #[doc = ""] |
| 111 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 112 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 113 | + pub fn mobile(&mut self, val: bool) -> &mut Self { |
| 114 | + self.mobile_shim(val); |
| 115 | + self |
| 116 | + } |
| 117 | + #[cfg(web_sys_unstable_apis)] |
| 118 | + #[doc = "Change the `model` field of this object."] |
| 119 | + #[doc = ""] |
| 120 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 121 | + #[doc = ""] |
| 122 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 123 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 124 | + pub fn model(&mut self, val: &str) -> &mut Self { |
| 125 | + self.model_shim(val); |
| 126 | + self |
| 127 | + } |
| 128 | + #[cfg(web_sys_unstable_apis)] |
| 129 | + #[doc = "Change the `platform` field of this object."] |
| 130 | + #[doc = ""] |
| 131 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 132 | + #[doc = ""] |
| 133 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 134 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 135 | + pub fn platform(&mut self, val: &str) -> &mut Self { |
| 136 | + self.platform_shim(val); |
| 137 | + self |
| 138 | + } |
| 139 | + #[cfg(web_sys_unstable_apis)] |
| 140 | + #[doc = "Change the `platformVersion` field of this object."] |
| 141 | + #[doc = ""] |
| 142 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 143 | + #[doc = ""] |
| 144 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 145 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 146 | + pub fn platform_version(&mut self, val: &str) -> &mut Self { |
| 147 | + self.platform_version_shim(val); |
| 148 | + self |
| 149 | + } |
| 150 | + #[cfg(web_sys_unstable_apis)] |
| 151 | + #[doc = "Change the `wow64` field of this object."] |
| 152 | + #[doc = ""] |
| 153 | + #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] |
| 154 | + #[doc = ""] |
| 155 | + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] |
| 156 | + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] |
| 157 | + pub fn wow64(&mut self, val: bool) -> &mut Self { |
| 158 | + self.wow64_shim(val); |
| 159 | + self |
| 160 | + } |
| 161 | +} |
| 162 | +#[cfg(web_sys_unstable_apis)] |
| 163 | +impl Default for UaDataValues { |
| 164 | + fn default() -> Self { |
| 165 | + Self::new() |
| 166 | + } |
| 167 | +} |
0 commit comments