amazon_spapi/models/shipping_v2/
account_status.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum AccountStatus {
18 #[serde(rename = "ACTIVE")]
19 Active,
20 #[serde(rename = "INACTIVE")]
21 Inactive,
22 #[serde(rename = "PENDING")]
23 Pending,
24 #[serde(rename = "SUSPENDED")]
25 Suspended,
26
27}
28
29impl std::fmt::Display for AccountStatus {
30 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31 match self {
32 Self::Active => write!(f, "ACTIVE"),
33 Self::Inactive => write!(f, "INACTIVE"),
34 Self::Pending => write!(f, "PENDING"),
35 Self::Suspended => write!(f, "SUSPENDED"),
36 }
37 }
38}
39
40impl Default for AccountStatus {
41 fn default() -> AccountStatus {
42 Self::Active
43 }
44}
45