bitwarden_api_api/models/
web_authn_prf_status.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[repr(i64)]
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
serde_repr::Serialize_repr,
serde_repr::Deserialize_repr,
)]
pub enum WebAuthnPrfStatus {
Enabled = 0,
Supported = 1,
Unsupported = 2,
}
impl std::fmt::Display for WebAuthnPrfStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Enabled => write!(f, "0"),
Self::Supported => write!(f, "1"),
Self::Unsupported => write!(f, "2"),
}
}
}
impl Default for WebAuthnPrfStatus {
fn default() -> WebAuthnPrfStatus {
Self::Enabled
}
}