twilio_rust_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.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 MessageEnumDirection {
17    #[serde(rename = "inbound")]
18    Inbound,
19    #[serde(rename = "outbound-api")]
20    OutboundApi,
21    #[serde(rename = "outbound-call")]
22    OutboundCall,
23    #[serde(rename = "outbound-reply")]
24    OutboundReply,
25
26}
27
28impl std::fmt::Display for MessageEnumDirection {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Inbound => write!(f, "inbound"),
32            Self::OutboundApi => write!(f, "outbound-api"),
33            Self::OutboundCall => write!(f, "outbound-call"),
34            Self::OutboundReply => write!(f, "outbound-reply"),
35        }
36    }
37}
38
39impl Default for MessageEnumDirection {
40    fn default() -> MessageEnumDirection {
41        Self::Inbound
42    }
43}
44