Struct webauthn_rs::proto::PublicKeyCredentialCreationOptions[][src]

pub struct PublicKeyCredentialCreationOptions {
    pub rp: RelyingParty,
    pub user: User,
    pub challenge: Base64UrlSafeData,
    pub pub_key_cred_params: Vec<PubKeyCredParams>,
    pub timeout: Option<u32>,
    pub attestation: Option<AttestationConveyancePreference>,
    pub exclude_credentials: Option<Vec<PublicKeyCredentialDescriptor>>,
    pub authenticator_selection: Option<AuthenticatorSelectionCriteria>,
    pub extensions: Option<RequestRegistrationExtensions>,
}
Expand description

Fields

rp: RelyingParty

The relying party

user: User

The user.

challenge: Base64UrlSafeData

The one-time challenge for the credential to sign.

pub_key_cred_params: Vec<PubKeyCredParams>

The set of cryptographic types allowed by this server.

timeout: Option<u32>

The timeout for the authenticator to stop accepting the operation

attestation: Option<AttestationConveyancePreference>

The requested attestation level from the device.

exclude_credentials: Option<Vec<PublicKeyCredentialDescriptor>>

Credential ID’s that are excluded from being able to be registered.

authenticator_selection: Option<AuthenticatorSelectionCriteria>

Criteria defining which authenticators may be used in this operation.

extensions: Option<RequestRegistrationExtensions>

Non-standard extensions that may be used by the browser/authenticator.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.