pub struct PublicKeyCredentialCreationOptions {
pub attestation: Option<AttestationConveyancePreference>,
pub authenticator_selection: Option<Box<AuthenticatorSelectionCriteria>>,
pub challenge: Option<String>,
pub exclude_credentials: Option<Vec<PublicKeyCredentialDescriptor>>,
pub extensions: Option<Box<WebAuthnRegistrationExtensionOptions>>,
pub pub_key_cred_params: Option<Vec<PublicKeyCredentialParameters>>,
pub rp: Option<Box<PublicKeyCredentialRelyingPartyEntity>>,
pub timeout: Option<i64>,
pub user: Option<Box<PublicKeyCredentialUserEntity>>,
}
Expand description
PublicKeyCredentialCreationOptions : Allows the Relying Party to specify desired attributes of a new credential.
Fields§
§attestation: Option<AttestationConveyancePreference>
§authenticator_selection: Option<Box<AuthenticatorSelectionCriteria>>
§challenge: Option<String>
§exclude_credentials: Option<Vec<PublicKeyCredentialDescriptor>>
§extensions: Option<Box<WebAuthnRegistrationExtensionOptions>>
§pub_key_cred_params: Option<Vec<PublicKeyCredentialParameters>>
§rp: Option<Box<PublicKeyCredentialRelyingPartyEntity>>
§timeout: Option<i64>
§user: Option<Box<PublicKeyCredentialUserEntity>>
Implementations§
Source§impl PublicKeyCredentialCreationOptions
impl PublicKeyCredentialCreationOptions
Sourcepub fn new() -> PublicKeyCredentialCreationOptions
pub fn new() -> PublicKeyCredentialCreationOptions
Allows the Relying Party to specify desired attributes of a new credential.
Trait Implementations§
Source§impl Clone for PublicKeyCredentialCreationOptions
impl Clone for PublicKeyCredentialCreationOptions
Source§fn clone(&self) -> PublicKeyCredentialCreationOptions
fn clone(&self) -> PublicKeyCredentialCreationOptions
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 Default for PublicKeyCredentialCreationOptions
impl Default for PublicKeyCredentialCreationOptions
Source§fn default() -> PublicKeyCredentialCreationOptions
fn default() -> PublicKeyCredentialCreationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicKeyCredentialCreationOptions
impl<'de> Deserialize<'de> for PublicKeyCredentialCreationOptions
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
Source§impl PartialEq for PublicKeyCredentialCreationOptions
impl PartialEq for PublicKeyCredentialCreationOptions
Source§fn eq(&self, other: &PublicKeyCredentialCreationOptions) -> bool
fn eq(&self, other: &PublicKeyCredentialCreationOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PublicKeyCredentialCreationOptions
Auto Trait Implementations§
impl Freeze for PublicKeyCredentialCreationOptions
impl RefUnwindSafe for PublicKeyCredentialCreationOptions
impl Send for PublicKeyCredentialCreationOptions
impl Sync for PublicKeyCredentialCreationOptions
impl Unpin for PublicKeyCredentialCreationOptions
impl UnwindSafe for PublicKeyCredentialCreationOptions
Blanket Implementations§
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