twilio_rust_openapi/models/
api_v2010_account_incoming_phone_number_capabilities.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/// 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`.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApiV2010AccountIncomingPhoneNumberCapabilities {
17    #[serde(rename = "mms", skip_serializing_if = "Option::is_none")]
18    pub mms: Option<bool>,
19    #[serde(rename = "sms", skip_serializing_if = "Option::is_none")]
20    pub sms: Option<bool>,
21    #[serde(rename = "voice", skip_serializing_if = "Option::is_none")]
22    pub voice: Option<bool>,
23    #[serde(rename = "fax", skip_serializing_if = "Option::is_none")]
24    pub fax: Option<bool>,
25}
26
27impl ApiV2010AccountIncomingPhoneNumberCapabilities {
28    /// 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`.
29    pub fn new() -> ApiV2010AccountIncomingPhoneNumberCapabilities {
30        ApiV2010AccountIncomingPhoneNumberCapabilities {
31            mms: None,
32            sms: None,
33            voice: None,
34            fax: None,
35        }
36    }
37}
38