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