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