twilio_openapi/models/
recording_enum_source.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 RecordingEnumSource {
15    #[serde(rename = "DialVerb")]
16    DialVerb,
17    #[serde(rename = "Conference")]
18    Conference,
19    #[serde(rename = "OutboundAPI")]
20    OutboundApi,
21    #[serde(rename = "Trunking")]
22    Trunking,
23    #[serde(rename = "RecordVerb")]
24    RecordVerb,
25    #[serde(rename = "StartCallRecordingAPI")]
26    StartCallRecordingApi,
27    #[serde(rename = "StartConferenceRecordingAPI")]
28    StartConferenceRecordingApi,
29
30}
31
32impl ToString for RecordingEnumSource {
33    fn to_string(&self) -> String {
34        match self {
35            Self::DialVerb => String::from("DialVerb"),
36            Self::Conference => String::from("Conference"),
37            Self::OutboundApi => String::from("OutboundAPI"),
38            Self::Trunking => String::from("Trunking"),
39            Self::RecordVerb => String::from("RecordVerb"),
40            Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"),
41            Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"),
42        }
43    }
44}
45
46impl Default for RecordingEnumSource {
47    fn default() -> RecordingEnumSource {
48        Self::DialVerb
49    }
50}
51
52
53
54