1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Credential , extends = :: js_sys :: Object , js_name = PublicKeyCredential , typescript_type = "PublicKeyCredential")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `PublicKeyCredential` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] 13 pub type PublicKeyCredential; 14 # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = rawId)] 15 #[doc = "Getter for the `rawId` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/rawId)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] raw_id(this: &PublicKeyCredential) -> ::js_sys::ArrayBuffer20 pub fn raw_id(this: &PublicKeyCredential) -> ::js_sys::ArrayBuffer; 21 #[cfg(feature = "AuthenticatorResponse")] 22 # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = response)] 23 #[doc = "Getter for the `response` field of this object."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/response)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`, `PublicKeyCredential`*"] response(this: &PublicKeyCredential) -> AuthenticatorResponse28 pub fn response(this: &PublicKeyCredential) -> AuthenticatorResponse; 29 #[cfg(feature = "AuthenticationExtensionsClientOutputs")] 30 # [wasm_bindgen (method , structural , js_class = "PublicKeyCredential" , js_name = getClientExtensionResults)] 31 #[doc = "The `getClientExtensionResults()` method."] 32 #[doc = ""] 33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/getClientExtensionResults)"] 34 #[doc = ""] 35 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `PublicKeyCredential`*"] get_client_extension_results( this: &PublicKeyCredential, ) -> AuthenticationExtensionsClientOutputs36 pub fn get_client_extension_results( 37 this: &PublicKeyCredential, 38 ) -> AuthenticationExtensionsClientOutputs; 39 # [wasm_bindgen (static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = isUserVerifyingPlatformAuthenticatorAvailable)] 40 #[doc = "The `isUserVerifyingPlatformAuthenticatorAvailable()` method."] 41 #[doc = ""] 42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable)"] 43 #[doc = ""] 44 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] is_user_verifying_platform_authenticator_available() -> ::js_sys::Promise45 pub fn is_user_verifying_platform_authenticator_available() -> ::js_sys::Promise; 46 } 47