twilio_openapi/models/
call_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 CallRecordingEnumStatus {
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
28}
29
30impl ToString for CallRecordingEnumStatus {
31    fn to_string(&self) -> String {
32        match self {
33            Self::InProgress => String::from("in-progress"),
34            Self::Paused => String::from("paused"),
35            Self::Stopped => String::from("stopped"),
36            Self::Processing => String::from("processing"),
37            Self::Completed => String::from("completed"),
38            Self::Absent => String::from("absent"),
39        }
40    }
41}
42
43impl Default for CallRecordingEnumStatus {
44    fn default() -> CallRecordingEnumStatus {
45        Self::InProgress
46    }
47}
48
49
50
51