bitwarden_api_identity/models/
user_verification_requirement.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum UserVerificationRequirement {
#[serde(rename = "required")]
Required,
#[serde(rename = "preferred")]
Preferred,
#[serde(rename = "discouraged")]
Discouraged,
}
impl std::fmt::Display for UserVerificationRequirement {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Required => write!(f, "required"),
Self::Preferred => write!(f, "preferred"),
Self::Discouraged => write!(f, "discouraged"),
}
}
}
impl Default for UserVerificationRequirement {
fn default() -> UserVerificationRequirement {
Self::Required
}
}