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