web_sys/features/
gen_AuthenticationExtensionsDevicePublicKeyOutputs.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 = "AuthenticationExtensionsDevicePublicKeyOutputs"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `AuthenticationExtensionsDevicePublicKeyOutputs` dictionary."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
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 AuthenticationExtensionsDevicePublicKeyOutputs;
20 #[cfg(web_sys_unstable_apis)]
21 #[doc = "Get the `signature` field of this object."]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
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 = "signature")]
28 pub fn get_signature(
29 this: &AuthenticationExtensionsDevicePublicKeyOutputs,
30 ) -> Option<::js_sys::ArrayBuffer>;
31 #[cfg(web_sys_unstable_apis)]
32 #[doc = "Change the `signature` field of this object."]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
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 = "signature")]
39 pub fn set_signature(
40 this: &AuthenticationExtensionsDevicePublicKeyOutputs,
41 val: &::js_sys::ArrayBuffer,
42 );
43}
44#[cfg(web_sys_unstable_apis)]
45impl AuthenticationExtensionsDevicePublicKeyOutputs {
46 #[doc = "Construct a new `AuthenticationExtensionsDevicePublicKeyOutputs`."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
49 #[doc = ""]
50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn new() -> Self {
53 #[allow(unused_mut)]
54 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
55 ret
56 }
57 #[cfg(web_sys_unstable_apis)]
58 #[deprecated = "Use `set_signature()` instead."]
59 pub fn signature(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self {
60 self.set_signature(val);
61 self
62 }
63}
64#[cfg(web_sys_unstable_apis)]
65impl Default for AuthenticationExtensionsDevicePublicKeyOutputs {
66 fn default() -> Self {
67 Self::new()
68 }
69}