Struct webauthn_rs::proto::PublicKeyCredential[][src]

pub struct PublicKeyCredential {
    pub id: String,
    pub raw_id: Base64UrlSafeData,
    pub response: AuthenticatorAssertionResponseRaw,
    pub extensions: Option<AuthenticationExtensionsClientOutputs>,
    pub type_: String,
}
Expand description

A client response to an authentication challenge. This contains all required information to asses and assert trust in a credentials legitimacy, followed by authentication to a user.

You should not need to handle the inner content of this structure - you should provide this to the correctly handling function of Webauthn only.

Fields

id: String

The credential Id, likely base64

raw_id: Base64UrlSafeData

The binary of the credential id.

response: AuthenticatorAssertionResponseRaw

The authenticator response.

extensions: Option<AuthenticationExtensionsClientOutputs>

The extensions sent by the client

type_: String

The authenticator type.

Implementations

Get the supplied userHandle if provided

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.