bitwarden_api_api/models/
provider_user_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 ProviderUserType {
ProviderAdmin = 0,
ServiceUser = 1,
}
impl std::fmt::Display for ProviderUserType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::ProviderAdmin => write!(f, "0"),
Self::ServiceUser => write!(f, "1"),
}
}
}
impl Default for ProviderUserType {
fn default() -> ProviderUserType {
Self::ProviderAdmin
}
}