#[repr(u8)]pub enum CredentialProtectionPolicy {
UserVerificationOptional = 1,
UserVerificationOptionalWithCredentialIDList = 2,
UserVerificationRequired = 3,
}Expand description
Valid credential protection policies
Variants§
UserVerificationOptional = 1
This reflects “FIDO_2_0” semantics. In this configuration, performing some form of user verification is optional with or without credentialID list. This is the default state of the credential if the extension is not specified.
UserVerificationOptionalWithCredentialIDList = 2
In this configuration, credential is discovered only when its credentialID is provided by the platform or when some form of user verification is performed.
UserVerificationRequired = 3
This reflects that discovery and usage of the credential MUST be preceded by some form of user verification.
Trait Implementations§
Source§impl Clone for CredentialProtectionPolicy
impl Clone for CredentialProtectionPolicy
Source§fn clone(&self) -> CredentialProtectionPolicy
fn clone(&self) -> CredentialProtectionPolicy
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 Debug for CredentialProtectionPolicy
impl Debug for CredentialProtectionPolicy
Source§impl<'de> Deserialize<'de> for CredentialProtectionPolicy
impl<'de> Deserialize<'de> for CredentialProtectionPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CredentialProtectionPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CredentialProtectionPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CredentialProtectionPolicy
impl Serialize for CredentialProtectionPolicy
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
Source§impl TryFrom<u8> for CredentialProtectionPolicy
impl TryFrom<u8> for CredentialProtectionPolicy
impl Copy for CredentialProtectionPolicy
impl Eq for CredentialProtectionPolicy
impl StructuralPartialEq for CredentialProtectionPolicy
Auto Trait Implementations§
impl Freeze for CredentialProtectionPolicy
impl RefUnwindSafe for CredentialProtectionPolicy
impl Send for CredentialProtectionPolicy
impl Sync for CredentialProtectionPolicy
impl Unpin for CredentialProtectionPolicy
impl UnwindSafe for CredentialProtectionPolicy
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