twilio_openapi/models/
recording_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 RecordingEnumStatus {
15    #[serde(rename = "in-progress")]
16    InProgress,
17    #[serde(rename = "paused")]
18    Paused,
19    #[serde(rename = "stopped")]
20    Stopped,
21    #[serde(rename = "processing")]
22    Processing,
23    #[serde(rename = "completed")]
24    Completed,
25    #[serde(rename = "absent")]
26    Absent,
27    #[serde(rename = "deleted")]
28    Deleted,
29
30}
31
32impl ToString for RecordingEnumStatus {
33    fn to_string(&self) -> String {
34        match self {
35            Self::InProgress => String::from("in-progress"),
36            Self::Paused => String::from("paused"),
37            Self::Stopped => String::from("stopped"),
38            Self::Processing => String::from("processing"),
39            Self::Completed => String::from("completed"),
40            Self::Absent => String::from("absent"),
41            Self::Deleted => String::from("deleted"),
42        }
43    }
44}
45
46impl Default for RecordingEnumStatus {
47    fn default() -> RecordingEnumStatus {
48        Self::InProgress
49    }
50}
51
52
53
54