bitwarden_api_api/models/
attestation_conveyance_preference.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AttestationConveyancePreference {
#[serde(rename = "none")]
None,
#[serde(rename = "indirect")]
Indirect,
#[serde(rename = "direct")]
Direct,
}
impl std::fmt::Display for AttestationConveyancePreference {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::None => write!(f, "none"),
Self::Indirect => write!(f, "indirect"),
Self::Direct => write!(f, "direct"),
}
}
}
impl Default for AttestationConveyancePreference {
fn default() -> AttestationConveyancePreference {
Self::None
}
}