Skip to main content

web_sys/features/
gen_AuthenticationExtensionsClientOutputs.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "AuthenticationExtensionsClientOutputs"
10    )]
11    #[derive(Debug, Clone, PartialEq, Eq)]
12    #[doc = "The `AuthenticationExtensionsClientOutputs` dictionary."]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
15    pub type AuthenticationExtensionsClientOutputs;
16    #[doc = "Get the `appid` field of this object."]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
19    #[wasm_bindgen(method, getter = "appid")]
20    pub fn get_appid(this: &AuthenticationExtensionsClientOutputs) -> Option<bool>;
21    #[doc = "Change the `appid` field of this object."]
22    #[doc = ""]
23    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
24    #[wasm_bindgen(method, setter = "appid")]
25    pub fn set_appid(this: &AuthenticationExtensionsClientOutputs, val: bool);
26    #[doc = "Get the `appidExclude` field of this object."]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
29    #[wasm_bindgen(method, getter = "appidExclude")]
30    pub fn get_appid_exclude(this: &AuthenticationExtensionsClientOutputs) -> Option<bool>;
31    #[doc = "Change the `appidExclude` field of this object."]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
34    #[wasm_bindgen(method, setter = "appidExclude")]
35    pub fn set_appid_exclude(this: &AuthenticationExtensionsClientOutputs, val: bool);
36    #[cfg(feature = "CredentialPropertiesOutput")]
37    #[doc = "Get the `credProps` field of this object."]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `CredentialPropertiesOutput`*"]
40    #[wasm_bindgen(method, getter = "credProps")]
41    pub fn get_cred_props(
42        this: &AuthenticationExtensionsClientOutputs,
43    ) -> Option<CredentialPropertiesOutput>;
44    #[cfg(feature = "CredentialPropertiesOutput")]
45    #[doc = "Change the `credProps` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `CredentialPropertiesOutput`*"]
48    #[wasm_bindgen(method, setter = "credProps")]
49    pub fn set_cred_props(
50        this: &AuthenticationExtensionsClientOutputs,
51        val: &CredentialPropertiesOutput,
52    );
53    #[cfg(web_sys_unstable_apis)]
54    #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")]
55    #[doc = "Get the `devicePubKey` field of this object."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
58    #[doc = ""]
59    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
60    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
61    #[wasm_bindgen(method, getter = "devicePubKey")]
62    pub fn get_device_pub_key(
63        this: &AuthenticationExtensionsClientOutputs,
64    ) -> Option<AuthenticationExtensionsDevicePublicKeyOutputs>;
65    #[cfg(web_sys_unstable_apis)]
66    #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")]
67    #[doc = "Change the `devicePubKey` field of this object."]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
70    #[doc = ""]
71    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
73    #[wasm_bindgen(method, setter = "devicePubKey")]
74    pub fn set_device_pub_key(
75        this: &AuthenticationExtensionsClientOutputs,
76        val: &AuthenticationExtensionsDevicePublicKeyOutputs,
77    );
78    #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")]
79    #[doc = "Get the `largeBlob` field of this object."]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsLargeBlobOutputs`*"]
82    #[wasm_bindgen(method, getter = "largeBlob")]
83    pub fn get_large_blob(
84        this: &AuthenticationExtensionsClientOutputs,
85    ) -> Option<AuthenticationExtensionsLargeBlobOutputs>;
86    #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")]
87    #[doc = "Change the `largeBlob` field of this object."]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsLargeBlobOutputs`*"]
90    #[wasm_bindgen(method, setter = "largeBlob")]
91    pub fn set_large_blob(
92        this: &AuthenticationExtensionsClientOutputs,
93        val: &AuthenticationExtensionsLargeBlobOutputs,
94    );
95    #[cfg(web_sys_unstable_apis)]
96    #[cfg(feature = "AuthenticationExtensionsPrfOutputs")]
97    #[doc = "Get the `prf` field of this object."]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsPrfOutputs`*"]
100    #[doc = ""]
101    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
102    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
103    #[wasm_bindgen(method, getter = "prf")]
104    pub fn get_prf(
105        this: &AuthenticationExtensionsClientOutputs,
106    ) -> Option<AuthenticationExtensionsPrfOutputs>;
107    #[cfg(web_sys_unstable_apis)]
108    #[cfg(feature = "AuthenticationExtensionsPrfOutputs")]
109    #[doc = "Change the `prf` field of this object."]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsPrfOutputs`*"]
112    #[doc = ""]
113    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
114    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
115    #[wasm_bindgen(method, setter = "prf")]
116    pub fn set_prf(
117        this: &AuthenticationExtensionsClientOutputs,
118        val: &AuthenticationExtensionsPrfOutputs,
119    );
120    #[doc = "Get the `uvm` field of this object."]
121    #[doc = ""]
122    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
123    #[wasm_bindgen(method, getter = "uvm")]
124    pub fn get_uvm(this: &AuthenticationExtensionsClientOutputs) -> Option<::js_sys::Array>;
125    #[doc = "Change the `uvm` field of this object."]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
128    #[wasm_bindgen(method, setter = "uvm")]
129    pub fn set_uvm(this: &AuthenticationExtensionsClientOutputs, val: &::wasm_bindgen::JsValue);
130}
131impl AuthenticationExtensionsClientOutputs {
132    #[doc = "Construct a new `AuthenticationExtensionsClientOutputs`."]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
135    pub fn new() -> Self {
136        #[allow(unused_mut)]
137        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
138        ret
139    }
140    #[deprecated = "Use `set_appid()` instead."]
141    pub fn appid(&mut self, val: bool) -> &mut Self {
142        self.set_appid(val);
143        self
144    }
145    #[deprecated = "Use `set_appid_exclude()` instead."]
146    pub fn appid_exclude(&mut self, val: bool) -> &mut Self {
147        self.set_appid_exclude(val);
148        self
149    }
150    #[cfg(feature = "CredentialPropertiesOutput")]
151    #[deprecated = "Use `set_cred_props()` instead."]
152    pub fn cred_props(&mut self, val: &CredentialPropertiesOutput) -> &mut Self {
153        self.set_cred_props(val);
154        self
155    }
156    #[cfg(web_sys_unstable_apis)]
157    #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")]
158    #[deprecated = "Use `set_device_pub_key()` instead."]
159    pub fn device_pub_key(
160        &mut self,
161        val: &AuthenticationExtensionsDevicePublicKeyOutputs,
162    ) -> &mut Self {
163        self.set_device_pub_key(val);
164        self
165    }
166    #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")]
167    #[deprecated = "Use `set_large_blob()` instead."]
168    pub fn large_blob(&mut self, val: &AuthenticationExtensionsLargeBlobOutputs) -> &mut Self {
169        self.set_large_blob(val);
170        self
171    }
172    #[cfg(web_sys_unstable_apis)]
173    #[cfg(feature = "AuthenticationExtensionsPrfOutputs")]
174    #[deprecated = "Use `set_prf()` instead."]
175    pub fn prf(&mut self, val: &AuthenticationExtensionsPrfOutputs) -> &mut Self {
176        self.set_prf(val);
177        self
178    }
179    #[deprecated = "Use `set_uvm()` instead."]
180    pub fn uvm(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
181        self.set_uvm(val);
182        self
183    }
184}
185impl Default for AuthenticationExtensionsClientOutputs {
186    fn default() -> Self {
187        Self::new()
188    }
189}