twilio_openapi/models/
message_enum_direction.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 MessageEnumDirection {
15    #[serde(rename = "inbound")]
16    Inbound,
17    #[serde(rename = "outbound-api")]
18    OutboundApi,
19    #[serde(rename = "outbound-call")]
20    OutboundCall,
21    #[serde(rename = "outbound-reply")]
22    OutboundReply,
23
24}
25
26impl ToString for MessageEnumDirection {
27    fn to_string(&self) -> String {
28        match self {
29            Self::Inbound => String::from("inbound"),
30            Self::OutboundApi => String::from("outbound-api"),
31            Self::OutboundCall => String::from("outbound-call"),
32            Self::OutboundReply => String::from("outbound-reply"),
33        }
34    }
35}
36
37impl Default for MessageEnumDirection {
38    fn default() -> MessageEnumDirection {
39        Self::Inbound
40    }
41}
42
43
44
45