twilio_openapi/models/
incoming_phone_number_enum_voice_receive_mode.rs

1/*
2 * Twilio - Api
3 *
4 * This is the public Twilio REST API.
5 *
6 * The version of the OpenAPI document: 1.37.3
7 * Contact: support@twilio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12/// 
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum IncomingPhoneNumberEnumVoiceReceiveMode {
15    #[serde(rename = "voice")]
16    Voice,
17    #[serde(rename = "fax")]
18    Fax,
19
20}
21
22impl ToString for IncomingPhoneNumberEnumVoiceReceiveMode {
23    fn to_string(&self) -> String {
24        match self {
25            Self::Voice => String::from("voice"),
26            Self::Fax => String::from("fax"),
27        }
28    }
29}
30
31impl Default for IncomingPhoneNumberEnumVoiceReceiveMode {
32    fn default() -> IncomingPhoneNumberEnumVoiceReceiveMode {
33        Self::Voice
34    }
35}
36
37
38
39