pub struct WebAuthnAttestationResponse { /* private fields */ }Implementations§
Source§impl WebAuthnAttestationResponse
impl WebAuthnAttestationResponse
Sourcepub fn with_attestation_object(self, payload: impl Into<String>) -> Self
pub fn with_attestation_object(self, payload: impl Into<String>) -> Self
Returns a new response with the provided attestation object encoded as base64url.
Sourcepub fn with_credential_public_key(self, payload: impl Into<String>) -> Self
pub fn with_credential_public_key(self, payload: impl Into<String>) -> Self
Returns a new response with the provided credential public key.
Sourcepub fn with_transports<I, T>(self, transports: I) -> Self
pub fn with_transports<I, T>(self, transports: I) -> Self
Returns a new response with the provided transports.
pub fn credential_id(&self) -> Option<&str>
pub fn client_data_json(&self) -> Option<&str>
Sourcepub fn attestation_object(&self) -> Option<&str>
pub fn attestation_object(&self) -> Option<&str>
Returns the attestation object emitted by the authenticator, base64url encoded.
Sourcepub fn credential_public_key(&self) -> Option<&str>
pub fn credential_public_key(&self) -> Option<&str>
Returns the credential public key when provided by the platform authenticator.
Sourcepub fn transports(&self) -> Vec<WebAuthnTransport>
pub fn transports(&self) -> Vec<WebAuthnTransport>
Returns the transports declared by the authenticator for the newly enrolled credential.
pub fn as_raw(&self) -> &Value
pub fn into_raw(self) -> Value
Trait Implementations§
Source§impl Clone for WebAuthnAttestationResponse
impl Clone for WebAuthnAttestationResponse
Source§fn clone(&self) -> WebAuthnAttestationResponse
fn clone(&self) -> WebAuthnAttestationResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebAuthnAttestationResponse
impl Debug for WebAuthnAttestationResponse
Auto Trait Implementations§
impl Freeze for WebAuthnAttestationResponse
impl RefUnwindSafe for WebAuthnAttestationResponse
impl Send for WebAuthnAttestationResponse
impl Sync for WebAuthnAttestationResponse
impl Unpin for WebAuthnAttestationResponse
impl UnwindSafe for WebAuthnAttestationResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more