twilio-openapi 1.2.2

This is a twilio API client generated via openAPI and slightly modified
Documentation
/*
 * Twilio - Api
 *
 * This is the public Twilio REST API.
 *
 * The version of the OpenAPI document: 1.37.3
 * Contact: support@twilio.com
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ApiPeriodV2010PeriodAccountPeriodToken {
    /// The SID of the Account that created the resource
    #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub account_sid: Option<Option<String>>,
    /// The RFC 2822 date and time in GMT that the resource was created
    #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub date_created: Option<Option<String>>,
    /// The RFC 2822 date and time in GMT that the resource was last updated
    #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub date_updated: Option<Option<String>>,
    /// An array representing the ephemeral credentials
    #[serde(rename = "ice_servers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub ice_servers: Option<Option<Vec<crate::models::ApiV2010AccountTokenIceServersInner>>>,
    /// The temporary password used for authenticating
    #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub password: Option<Option<String>>,
    /// The duration in seconds the credentials are valid
    #[serde(rename = "ttl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub ttl: Option<Option<String>>,
    /// The temporary username that uniquely identifies a Token
    #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub username: Option<Option<String>>,
}

impl ApiPeriodV2010PeriodAccountPeriodToken {
    pub fn new() -> ApiPeriodV2010PeriodAccountPeriodToken {
        ApiPeriodV2010PeriodAccountPeriodToken {
            account_sid: None,
            date_created: None,
            date_updated: None,
            ice_servers: None,
            password: None,
            ttl: None,
            username: None,
        }
    }
}