twilio-rust-openapi 1.0.0

This is the public Twilio REST API.
Documentation
/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ApiPeriodV2010PeriodAccount {
    /// The authorization token for this account. This token should be kept a secret, so no sharing.
    #[serde(rename = "auth_token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub auth_token: Option<Option<String>>,
    /// The date that this account was created, in GMT in RFC 2822 format
    #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub date_created: Option<Option<String>>,
    /// The date that this account was last updated, in GMT in RFC 2822 format.
    #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub date_updated: Option<Option<String>>,
    /// A human readable description of this account, up to 64 characters long. By default the FriendlyName is your email address.
    #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub friendly_name: Option<Option<String>>,
    /// The unique 34 character id that represents the parent of this account. The OwnerAccountSid of a parent account is it's own sid.
    #[serde(rename = "owner_account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub owner_account_sid: Option<Option<String>>,
    /// A 34 character string that uniquely identifies this resource.
    #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub sid: Option<Option<String>>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<models::AccountEnumStatus>,
    /// A Map of various subresources available for the given Account Instance
    #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub subresource_uris: Option<Option<serde_json::Value>>,
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<models::AccountEnumType>,
    /// The URI for this resource, relative to `https://api.twilio.com`
    #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub uri: Option<Option<String>>,
}

impl ApiPeriodV2010PeriodAccount {
    pub fn new() -> ApiPeriodV2010PeriodAccount {
        ApiPeriodV2010PeriodAccount {
            auth_token: None,
            date_created: None,
            date_updated: None,
            friendly_name: None,
            owner_account_sid: None,
            sid: None,
            status: None,
            subresource_uris: None,
            r#type: None,
            uri: None,
        }
    }
}