twilio_openapi/models/
call_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 CallEnumStatus {
15    #[serde(rename = "queued")]
16    Queued,
17    #[serde(rename = "ringing")]
18    Ringing,
19    #[serde(rename = "in-progress")]
20    InProgress,
21    #[serde(rename = "completed")]
22    Completed,
23    #[serde(rename = "busy")]
24    Busy,
25    #[serde(rename = "failed")]
26    Failed,
27    #[serde(rename = "no-answer")]
28    NoAnswer,
29    #[serde(rename = "canceled")]
30    Canceled,
31
32}
33
34impl ToString for CallEnumStatus {
35    fn to_string(&self) -> String {
36        match self {
37            Self::Queued => String::from("queued"),
38            Self::Ringing => String::from("ringing"),
39            Self::InProgress => String::from("in-progress"),
40            Self::Completed => String::from("completed"),
41            Self::Busy => String::from("busy"),
42            Self::Failed => String::from("failed"),
43            Self::NoAnswer => String::from("no-answer"),
44            Self::Canceled => String::from("canceled"),
45        }
46    }
47}
48
49impl Default for CallEnumStatus {
50    fn default() -> CallEnumStatus {
51        Self::Queued
52    }
53}
54
55
56
57