1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Twilio - Api
*
* This is the public Twilio REST API.
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@twilio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ApiV2010AccountIncomingPhoneNumberCapabilities : The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ApiV2010AccountIncomingPhoneNumberCapabilities {
#[serde(rename = "mms", skip_serializing_if = "Option::is_none")]
pub mms: Option<bool>,
#[serde(rename = "sms", skip_serializing_if = "Option::is_none")]
pub sms: Option<bool>,
#[serde(rename = "voice", skip_serializing_if = "Option::is_none")]
pub voice: Option<bool>,
#[serde(rename = "fax", skip_serializing_if = "Option::is_none")]
pub fax: Option<bool>,
}
impl ApiV2010AccountIncomingPhoneNumberCapabilities {
/// The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
pub fn new() -> ApiV2010AccountIncomingPhoneNumberCapabilities {
ApiV2010AccountIncomingPhoneNumberCapabilities {
mms: None,
sms: None,
voice: None,
fax: None,
}
}
}