twilio_rust_openapi/models/
usage_trigger_enum_recurring.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 UsageTriggerEnumRecurring {
17    #[serde(rename = "daily")]
18    Daily,
19    #[serde(rename = "monthly")]
20    Monthly,
21    #[serde(rename = "yearly")]
22    Yearly,
23    #[serde(rename = "alltime")]
24    Alltime,
25
26}
27
28impl std::fmt::Display for UsageTriggerEnumRecurring {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Daily => write!(f, "daily"),
32            Self::Monthly => write!(f, "monthly"),
33            Self::Yearly => write!(f, "yearly"),
34            Self::Alltime => write!(f, "alltime"),
35        }
36    }
37}
38
39impl Default for UsageTriggerEnumRecurring {
40    fn default() -> UsageTriggerEnumRecurring {
41        Self::Daily
42    }
43}
44