pub enum UserVerificationRequirement {
Required,
Preferred,
Discouraged,
}Expand description
A Relying Party may require user verification for some of its operations but not for others, and may use this type to express its needs.
https://w3c.github.io/webauthn/#enumdef-userverificationrequirement
Variants§
Required
The Relying Party requires user verification for the operation and will fail the overall ceremony if the response does not have the UV flag set. The client MUST return an error if user verification cannot be performed.
Preferred
The Relying Party prefers user verification for the operation if possible, but will not fail the operation if the response does not have the UV flag set.
Discouraged
The Relying Party does not want user verification employed during the operation (e.g., in the interest of minimizing disruption to the user interaction flow).
Trait Implementations§
source§impl Clone for UserVerificationRequirement
impl Clone for UserVerificationRequirement
source§fn clone(&self) -> UserVerificationRequirement
fn clone(&self) -> UserVerificationRequirement
Returns a copy 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 UserVerificationRequirement
impl Debug for UserVerificationRequirement
source§impl Default for UserVerificationRequirement
impl Default for UserVerificationRequirement
source§fn default() -> UserVerificationRequirement
fn default() -> UserVerificationRequirement
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UserVerificationRequirement
impl<'de> Deserialize<'de> for UserVerificationRequirement
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 UserVerificationRequirement
impl PartialEq for UserVerificationRequirement
source§fn eq(&self, other: &UserVerificationRequirement) -> bool
fn eq(&self, other: &UserVerificationRequirement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UserVerificationRequirement
impl Eq for UserVerificationRequirement
impl StructuralEq for UserVerificationRequirement
impl StructuralPartialEq for UserVerificationRequirement
Auto Trait Implementations§
impl RefUnwindSafe for UserVerificationRequirement
impl Send for UserVerificationRequirement
impl Sync for UserVerificationRequirement
impl Unpin for UserVerificationRequirement
impl UnwindSafe for UserVerificationRequirement
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.