twilio_openapi/models/
stream_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 StreamEnumStatus {
15    #[serde(rename = "in-progress")]
16    InProgress,
17    #[serde(rename = "stopped")]
18    Stopped,
19
20}
21
22impl ToString for StreamEnumStatus {
23    fn to_string(&self) -> String {
24        match self {
25            Self::InProgress => String::from("in-progress"),
26            Self::Stopped => String::from("stopped"),
27        }
28    }
29}
30
31impl Default for StreamEnumStatus {
32    fn default() -> StreamEnumStatus {
33        Self::InProgress
34    }
35}
36
37
38
39