pub struct PublicKeyCredentialRequestOptions {
pub challenge: Base64UrlSafeData,
pub timeout: Option<u32>,
pub rp_id: String,
pub allow_credentials: Vec<AllowCredentials>,
pub user_verification: UserVerificationPolicy,
pub hints: Option<Vec<PublicKeyCredentialHints>>,
pub extensions: Option<RequestAuthenticationExtensions>,
}Expand description
The requested options for the authentication
Fields§
§challenge: Base64UrlSafeDataThe challenge that should be signed by the authenticator.
timeout: Option<u32>The timeout for the authenticator in case of no interaction.
rp_id: StringThe relying party ID.
allow_credentials: Vec<AllowCredentials>The set of credentials that are allowed to sign this challenge.
user_verification: UserVerificationPolicyThe verification policy the browser will request.
hints: Option<Vec<PublicKeyCredentialHints>>Hints defining which types credentials may be used in this operation.
extensions: Option<RequestAuthenticationExtensions>extensions.
Trait Implementations§
Source§impl Clone for PublicKeyCredentialRequestOptions
impl Clone for PublicKeyCredentialRequestOptions
Source§fn clone(&self) -> PublicKeyCredentialRequestOptions
fn clone(&self) -> PublicKeyCredentialRequestOptions
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<'de> Deserialize<'de> for PublicKeyCredentialRequestOptions
impl<'de> Deserialize<'de> for PublicKeyCredentialRequestOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PublicKeyCredentialRequestOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PublicKeyCredentialRequestOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PublicKeyCredentialRequestOptions
impl Serialize for PublicKeyCredentialRequestOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PublicKeyCredentialRequestOptions
impl RefUnwindSafe for PublicKeyCredentialRequestOptions
impl Send for PublicKeyCredentialRequestOptions
impl Sync for PublicKeyCredentialRequestOptions
impl Unpin for PublicKeyCredentialRequestOptions
impl UnwindSafe for PublicKeyCredentialRequestOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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