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 PaymentsEnumPaymentMethod {
    #[serde(rename = "credit-card")]
    CreditCard,
    #[serde(rename = "ach-debit")]
    AchDebit,

}

impl std::fmt::Display for PaymentsEnumPaymentMethod {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::CreditCard => write!(f, "credit-card"),
            Self::AchDebit => write!(f, "ach-debit"),
        }
    }
}

impl Default for PaymentsEnumPaymentMethod {
    fn default() -> PaymentsEnumPaymentMethod {
        Self::CreditCard
    }
}