Struct webauthn_rs::proto::RequestRegistrationExtensionsBuilder[][src]

pub struct RequestRegistrationExtensionsBuilder(_);
Expand description

Builder for RequestRegistrationExtensions objects.

Implementations

Returns the inner extensions struct

Set the credential protection extension options

Example

let cred_protect = CredProtect::new(
    CredentialProtectionPolicy::UserVerificationRequired,
    None,
);
let extensions = RequestRegistrationExtensions::builder()
    .cred_protect(cred_protect.clone())
    .build();

assert_eq!(extensions.cred_protect, Some(cred_protect));

Set the credential blob extension options

Example

let cred_blob = vec![0xde, 0xad, 0xbe, 0xef];
let extensions = RequestRegistrationExtensions::builder()
    .cred_blob(cred_blob.clone())
    .build();

assert_eq!(extensions.cred_blob, Some(CredBlobSet::from(cred_blob)));

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.