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