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