twilio_rust_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.0.0
7 * Contact: support@twilio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum RecordingEnumStatus {
17    #[serde(rename = "in-progress")]
18    InProgress,
19    #[serde(rename = "paused")]
20    Paused,
21    #[serde(rename = "stopped")]
22    Stopped,
23    #[serde(rename = "processing")]
24    Processing,
25    #[serde(rename = "completed")]
26    Completed,
27    #[serde(rename = "absent")]
28    Absent,
29    #[serde(rename = "deleted")]
30    Deleted,
31
32}
33
34impl std::fmt::Display for RecordingEnumStatus {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        match self {
37            Self::InProgress => write!(f, "in-progress"),
38            Self::Paused => write!(f, "paused"),
39            Self::Stopped => write!(f, "stopped"),
40            Self::Processing => write!(f, "processing"),
41            Self::Completed => write!(f, "completed"),
42            Self::Absent => write!(f, "absent"),
43            Self::Deleted => write!(f, "deleted"),
44        }
45    }
46}
47
48impl Default for RecordingEnumStatus {
49    fn default() -> RecordingEnumStatus {
50        Self::InProgress
51    }
52}
53