web_sys/features/
gen_AuthenticationExtensionsClientInputs.rs

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