Struct webauthn_rs::proto::CredProtect [−][src]
pub struct CredProtect {
pub credential_protection_policy: CredentialProtectionPolicy,
pub enforce_credential_protection_policy: Option<bool>,
}
Expand description
The desired options for the client’s use of the credProtect
extension
Fields
credential_protection_policy: CredentialProtectionPolicy
The credential policy to enact
enforce_credential_protection_policy: Option<bool>
Whether it is better for the authenticator to fail to create a
credential rather than ignore the protection policy
If no value is provided, the client treats it as false
.
Implementations
pub fn new(
credential_protection_policy: CredentialProtectionPolicy,
enforce_credential_protection_policy: Option<bool>
) -> Self
pub fn new(
credential_protection_policy: CredentialProtectionPolicy,
enforce_credential_protection_policy: Option<bool>
) -> Self
Create a CredProtect object
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CredProtect
impl Send for CredProtect
impl Sync for CredProtect
impl Unpin for CredProtect
impl UnwindSafe for CredProtect
Blanket Implementations
Mutably borrows from an owned value. Read more