bitwarden_api_api/models/
web_authn_prf_status.rs1use serde::{Deserialize, Serialize};
12use serde_repr::{Deserialize_repr, Serialize_repr};
13
14use crate::models;
15#[repr(i64)]
17#[derive(
18 Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr,
19)]
20pub enum WebAuthnPrfStatus {
21 Enabled = 0,
22 Supported = 1,
23 Unsupported = 2,
24}
25
26impl std::fmt::Display for WebAuthnPrfStatus {
27 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
28 write!(
29 f,
30 "{}",
31 match self {
32 Self::Enabled => "0",
33 Self::Supported => "1",
34 Self::Unsupported => "2",
35 }
36 )
37 }
38}
39impl Default for WebAuthnPrfStatus {
40 fn default() -> WebAuthnPrfStatus {
41 Self::Enabled
42 }
43}