web_sys/features/
gen_AuthenticationExtensionsDevicePublicKeyInputs.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsDevicePublicKeyInputs)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `AuthenticationExtensionsDevicePublicKeyInputs` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
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 AuthenticationExtensionsDevicePublicKeyInputs;
17 #[cfg(web_sys_unstable_apis)]
18 #[doc = "Get the `attestation` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 #[wasm_bindgen(method, getter = "attestation")]
25 pub fn get_attestation(
26 this: &AuthenticationExtensionsDevicePublicKeyInputs,
27 ) -> Option<::alloc::string::String>;
28 #[cfg(web_sys_unstable_apis)]
29 #[doc = "Change the `attestation` field of this object."]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 #[wasm_bindgen(method, setter = "attestation")]
36 pub fn set_attestation(this: &AuthenticationExtensionsDevicePublicKeyInputs, val: &str);
37 #[cfg(web_sys_unstable_apis)]
38 #[doc = "Get the `attestationFormats` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 #[wasm_bindgen(method, getter = "attestationFormats")]
45 pub fn get_attestation_formats(
46 this: &AuthenticationExtensionsDevicePublicKeyInputs,
47 ) -> Option<::js_sys::Array>;
48 #[cfg(web_sys_unstable_apis)]
49 #[doc = "Change the `attestationFormats` field of this object."]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `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, setter = "attestationFormats")]
56 pub fn set_attestation_formats(
57 this: &AuthenticationExtensionsDevicePublicKeyInputs,
58 val: &::wasm_bindgen::JsValue,
59 );
60}
61#[cfg(web_sys_unstable_apis)]
62impl AuthenticationExtensionsDevicePublicKeyInputs {
63 #[doc = "Construct a new `AuthenticationExtensionsDevicePublicKeyInputs`."]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
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 new() -> Self {
70 #[allow(unused_mut)]
71 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
72 ret
73 }
74 #[cfg(web_sys_unstable_apis)]
75 #[deprecated = "Use `set_attestation()` instead."]
76 pub fn attestation(&mut self, val: &str) -> &mut Self {
77 self.set_attestation(val);
78 self
79 }
80 #[cfg(web_sys_unstable_apis)]
81 #[deprecated = "Use `set_attestation_formats()` instead."]
82 pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
83 self.set_attestation_formats(val);
84 self
85 }
86}
87#[cfg(web_sys_unstable_apis)]
88impl Default for AuthenticationExtensionsDevicePublicKeyInputs {
89 fn default() -> Self {
90 Self::new()
91 }
92}