twilio_rust_openapi/models/
payments_enum_payment_method.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 PaymentsEnumPaymentMethod {
17    #[serde(rename = "credit-card")]
18    CreditCard,
19    #[serde(rename = "ach-debit")]
20    AchDebit,
21
22}
23
24impl std::fmt::Display for PaymentsEnumPaymentMethod {
25    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26        match self {
27            Self::CreditCard => write!(f, "credit-card"),
28            Self::AchDebit => write!(f, "ach-debit"),
29        }
30    }
31}
32
33impl Default for PaymentsEnumPaymentMethod {
34    fn default() -> PaymentsEnumPaymentMethod {
35        Self::CreditCard
36    }
37}
38