web_sys/features/
gen_AuthenticationExtensionsDevicePublicKeyOutputs.rs

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