bitwarden_api_api/models/
member_decryption_type.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 MemberDecryptionType {
MasterPassword = 0,
KeyConnector = 1,
TrustedDeviceEncryption = 2,
}
impl std::fmt::Display for MemberDecryptionType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::MasterPassword => write!(f, "0"),
Self::KeyConnector => write!(f, "1"),
Self::TrustedDeviceEncryption => write!(f, "2"),
}
}
}
impl Default for MemberDecryptionType {
fn default() -> MemberDecryptionType {
Self::MasterPassword
}
}