twilio_rust_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.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 StreamEnumStatus {
17    #[serde(rename = "in-progress")]
18    InProgress,
19    #[serde(rename = "stopped")]
20    Stopped,
21
22}
23
24impl std::fmt::Display for StreamEnumStatus {
25    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26        match self {
27            Self::InProgress => write!(f, "in-progress"),
28            Self::Stopped => write!(f, "stopped"),
29        }
30    }
31}
32
33impl Default for StreamEnumStatus {
34    fn default() -> StreamEnumStatus {
35        Self::InProgress
36    }
37}
38