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