#[repr(u8)]
pub enum CredentialProtectionPolicy {
UserVerificationOptional,
UserVerificationOptionalWithCredentialIDList,
UserVerificationRequired,
}Expand description
Valid credential protection policies
Variants
UserVerificationOptional
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
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
This reflects that discovery and usage of the credential MUST be preceded by some form of user verification.
Trait Implementations
sourceimpl Clone for CredentialProtectionPolicy
impl Clone for CredentialProtectionPolicy
sourcefn clone(&self) -> CredentialProtectionPolicy
fn clone(&self) -> CredentialProtectionPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CredentialProtectionPolicy
impl Debug for CredentialProtectionPolicy
sourceimpl<'de> Deserialize<'de> for CredentialProtectionPolicy
impl<'de> Deserialize<'de> for CredentialProtectionPolicy
sourcefn 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
sourceimpl PartialEq<CredentialProtectionPolicy> for CredentialProtectionPolicy
impl PartialEq<CredentialProtectionPolicy> for CredentialProtectionPolicy
sourcefn eq(&self, other: &CredentialProtectionPolicy) -> bool
fn eq(&self, other: &CredentialProtectionPolicy) -> bool
sourceimpl Serialize for CredentialProtectionPolicy
impl Serialize for CredentialProtectionPolicy
sourcefn 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
sourceimpl TryFrom<u8> for CredentialProtectionPolicy
impl TryFrom<u8> for CredentialProtectionPolicy
impl Copy for CredentialProtectionPolicy
impl Eq for CredentialProtectionPolicy
impl StructuralEq for CredentialProtectionPolicy
impl StructuralPartialEq for CredentialProtectionPolicy
Auto Trait Implementations
impl RefUnwindSafe for CredentialProtectionPolicy
impl Send for CredentialProtectionPolicy
impl Sync for CredentialProtectionPolicy
impl Unpin for CredentialProtectionPolicy
impl UnwindSafe for CredentialProtectionPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more