twilio_openapi/models/
account_enum_status.rs

1/*
2 * Twilio - Api
3 *
4 * This is the public Twilio REST API.
5 *
6 * The version of the OpenAPI document: 1.37.3
7 * Contact: support@twilio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12/// 
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum AccountEnumStatus {
15    #[serde(rename = "active")]
16    Active,
17    #[serde(rename = "suspended")]
18    Suspended,
19    #[serde(rename = "closed")]
20    Closed,
21
22}
23
24impl ToString for AccountEnumStatus {
25    fn to_string(&self) -> String {
26        match self {
27            Self::Active => String::from("active"),
28            Self::Suspended => String::from("suspended"),
29            Self::Closed => String::from("closed"),
30        }
31    }
32}
33
34impl Default for AccountEnumStatus {
35    fn default() -> AccountEnumStatus {
36        Self::Active
37    }
38}
39
40
41
42