Struct webauthn_rs::proto::RequestAuthenticationExtensionsBuilder[][src]

pub struct RequestAuthenticationExtensionsBuilder(_);
Expand description

Builder for RequestAuthenticationExtensions objects.

Implementations

Returns the inner extensions struct

Set whether you want to get the credential blob extension

Example

let extensions = RequestAuthenticationExtensions::builder()
    .get_cred_blob(true)
    .build();

assert_eq!(extensions.get_cred_blob, Some(CredBlobGet(true)));

Set the AppId extension, for backwards compatibility with FIDO U2F credentials

Example

let extensions = RequestAuthenticationExtensions::builder()
    .appid(String::from("https://domain.tld/app-id.json"))
    .build();

assert_eq!(extensions.appid, Some(String::from("https://domain.tld/app-id.json")));

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.