Skip to main content

web_sys/features/
gen_AuthenticatorAttestationResponse.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "AuthenticatorResponse",
9        extends = "::js_sys::Object",
10        js_name = "AuthenticatorAttestationResponse",
11        typescript_type = "AuthenticatorAttestationResponse"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `AuthenticatorAttestationResponse` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
19    pub type AuthenticatorAttestationResponse;
20    #[wasm_bindgen(
21        method,
22        getter,
23        js_class = "AuthenticatorAttestationResponse",
24        js_name = "attestationObject"
25    )]
26    #[doc = "Getter for the `attestationObject` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
31    pub fn attestation_object(this: &AuthenticatorAttestationResponse) -> ::js_sys::ArrayBuffer;
32    #[wasm_bindgen(
33        catch,
34        method,
35        js_class = "AuthenticatorAttestationResponse",
36        js_name = "getAuthenticatorData"
37    )]
38    #[doc = "The `getAuthenticatorData()` method."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
43    pub fn get_authenticator_data(
44        this: &AuthenticatorAttestationResponse,
45    ) -> Result<::js_sys::ArrayBuffer, JsValue>;
46    #[wasm_bindgen(
47        catch,
48        method,
49        js_class = "AuthenticatorAttestationResponse",
50        js_name = "getPublicKey"
51    )]
52    #[doc = "The `getPublicKey()` method."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
57    pub fn get_public_key(
58        this: &AuthenticatorAttestationResponse,
59    ) -> Result<Option<::js_sys::ArrayBuffer>, JsValue>;
60    #[wasm_bindgen(
61        catch,
62        method,
63        js_class = "AuthenticatorAttestationResponse",
64        js_name = "getPublicKeyAlgorithm"
65    )]
66    #[doc = "The `getPublicKeyAlgorithm()` method."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
71    pub fn get_public_key_algorithm(
72        this: &AuthenticatorAttestationResponse,
73    ) -> Result<i32, JsValue>;
74    #[wasm_bindgen(
75        method,
76        js_class = "AuthenticatorAttestationResponse",
77        js_name = "getTransports"
78    )]
79    #[doc = "The `getTransports()` method."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getTransports)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
84    pub fn get_transports(this: &AuthenticatorAttestationResponse) -> ::js_sys::Array;
85}