bitwarden_api_api/models/
provider_status_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 ProviderStatusType {
Pending = 0,
Created = 1,
Billable = 2,
}
impl std::fmt::Display for ProviderStatusType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Pending => write!(f, "0"),
Self::Created => write!(f, "1"),
Self::Billable => write!(f, "2"),
}
}
}
impl Default for ProviderStatusType {
fn default() -> ProviderStatusType {
Self::Pending
}
}