twilio_openapi/models/
incoming_phone_number_local_enum_address_requirement.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 IncomingPhoneNumberLocalEnumAddressRequirement {
15    #[serde(rename = "none")]
16    None,
17    #[serde(rename = "any")]
18    Any,
19    #[serde(rename = "local")]
20    Local,
21    #[serde(rename = "foreign")]
22    Foreign,
23
24}
25
26impl ToString for IncomingPhoneNumberLocalEnumAddressRequirement {
27    fn to_string(&self) -> String {
28        match self {
29            Self::None => String::from("none"),
30            Self::Any => String::from("any"),
31            Self::Local => String::from("local"),
32            Self::Foreign => String::from("foreign"),
33        }
34    }
35}
36
37impl Default for IncomingPhoneNumberLocalEnumAddressRequirement {
38    fn default() -> IncomingPhoneNumberLocalEnumAddressRequirement {
39        Self::None
40    }
41}
42
43
44
45