twilio-rust-openapi 1.0.0

This is the public Twilio REST API.
Documentation
/*
 * Twilio - Api
 *
 * This is the public Twilio REST API.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: support@twilio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SmsMessageEnumDirection {
    #[serde(rename = "inbound")]
    Inbound,
    #[serde(rename = "outbound-api")]
    OutboundApi,
    #[serde(rename = "outbound-call")]
    OutboundCall,
    #[serde(rename = "outbound-reply")]
    OutboundReply,

}

impl std::fmt::Display for SmsMessageEnumDirection {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Inbound => write!(f, "inbound"),
            Self::OutboundApi => write!(f, "outbound-api"),
            Self::OutboundCall => write!(f, "outbound-call"),
            Self::OutboundReply => write!(f, "outbound-reply"),
        }
    }
}

impl Default for SmsMessageEnumDirection {
    fn default() -> SmsMessageEnumDirection {
        Self::Inbound
    }
}