pub struct RegistrationOptions {
pub challenge: String,
pub rp: RelyingParty,
pub user: WebauthnUser,
pub pub_key_cred_params: Vec<PubKeyCredParam>,
pub timeout: u64,
pub exclude_credentials: Vec<ExcludeCredential>,
pub attestation: String,
pub authenticator_selection: AuthenticatorSelection,
}Expand description
Options sent to the client for credential registration
(navigator.credentials.create()).
Fields§
§challenge: StringServer-generated challenge (Base64url-encoded).
rp: RelyingPartyRelying party information.
user: WebauthnUserUser information for the new credential.
pub_key_cred_params: Vec<PubKeyCredParam>Required public key parameters.
timeout: u64Timeout hint in milliseconds.
exclude_credentials: Vec<ExcludeCredential>Exclude already-registered credentials.
attestation: StringAttestation conveyance preference.
authenticator_selection: AuthenticatorSelectionAuthenticator selection criteria.
Trait Implementations§
Source§impl Debug for RegistrationOptions
impl Debug for RegistrationOptions
Source§impl<'de> Deserialize<'de> for RegistrationOptions
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RegistrationOptions
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RegistrationOptions
impl RefUnwindSafe for RegistrationOptions
impl Send for RegistrationOptions
impl Sync for RegistrationOptions
impl Unpin for RegistrationOptions
impl UnsafeUnpin for RegistrationOptions
impl UnwindSafe for RegistrationOptions
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