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