pub struct PublicKeyCredentialCreationOptions {
pub rp: RelyingParty,
pub user: User,
pub challenge: Base64UrlSafeData,
pub pub_key_cred_params: Vec<PubKeyCredParams>,
pub timeout: Option<u32>,
pub exclude_credentials: Option<Vec<PublicKeyCredentialDescriptor>>,
pub authenticator_selection: Option<AuthenticatorSelectionCriteria>,
pub hints: Option<Vec<PublicKeyCredentialHints>>,
pub attestation: Option<AttestationConveyancePreference>,
pub attestation_formats: Option<Vec<AttestationFormat>>,
pub extensions: Option<RequestRegistrationExtensions>,
}Expand description
Fields§
§rp: RelyingPartyThe relying party
user: UserThe user.
challenge: Base64UrlSafeDataThe one-time challenge for the credential to sign.
pub_key_cred_params: Vec<PubKeyCredParams>The set of cryptographic types allowed by this server.
timeout: Option<u32>The timeout for the authenticator to stop accepting the operation
exclude_credentials: Option<Vec<PublicKeyCredentialDescriptor>>Credential ID’s that are excluded from being able to be registered.
authenticator_selection: Option<AuthenticatorSelectionCriteria>Criteria defining which authenticators may be used in this operation.
hints: Option<Vec<PublicKeyCredentialHints>>Hints defining which credentials may be used in this operation.
attestation: Option<AttestationConveyancePreference>The requested attestation level from the device.
attestation_formats: Option<Vec<AttestationFormat>>The list of attestation formats that the RP will accept.
extensions: Option<RequestRegistrationExtensions>Non-standard extensions that may be used by the browser/authenticator.
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<'de> Deserialize<'de> for PublicKeyCredentialCreationOptions
impl<'de> Deserialize<'de> for PublicKeyCredentialCreationOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PublicKeyCredentialCreationOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PublicKeyCredentialCreationOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PublicKeyCredentialCreationOptions
impl Serialize for PublicKeyCredentialCreationOptions
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 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<'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