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