artifacts/models/
account_status.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
5pub enum AccountStatus {
6    #[serde(rename = "standard")]
7    Standard,
8    #[serde(rename = "founder")]
9    Founder,
10    #[serde(rename = "gold_founder")]
11    GoldFounder,
12    #[serde(rename = "vip_founder")]
13    VipFounder,
14}
15
16impl std::fmt::Display for AccountStatus {
17    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
18        match self {
19            Self::Standard => write!(f, "standard"),
20            Self::Founder => write!(f, "founder"),
21            Self::GoldFounder => write!(f, "gold_founder"),
22            Self::VipFounder => write!(f, "vip_founder"),
23        }
24    }
25}
26
27impl Default for AccountStatus {
28    fn default() -> AccountStatus {
29        Self::Standard
30    }
31}