twilio_rust_openapi/models/
api_period_v2010_period_account_period_queue.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ApiPeriodV2010PeriodAccountPeriodQueue {
16    /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
17    #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub date_updated: Option<Option<String>>,
19    /// The number of calls currently in the queue.
20    #[serde(rename = "current_size", skip_serializing_if = "Option::is_none")]
21    pub current_size: Option<i32>,
22    /// A string that you assigned to describe this resource.
23    #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub friendly_name: Option<Option<String>>,
25    /// The URI of this resource, relative to `https://api.twilio.com`.
26    #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub uri: Option<Option<String>>,
28    /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource.
29    #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub account_sid: Option<Option<String>>,
31    ///  The average wait time in seconds of the members in this queue. This is calculated at the time of the request.
32    #[serde(rename = "average_wait_time", skip_serializing_if = "Option::is_none")]
33    pub average_wait_time: Option<i32>,
34    /// The unique string that that we created to identify this Queue resource.
35    #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
36    pub sid: Option<Option<String>>,
37    /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
38    #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
39    pub date_created: Option<Option<String>>,
40    ///  The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000.
41    #[serde(rename = "max_size", skip_serializing_if = "Option::is_none")]
42    pub max_size: Option<i32>,
43}
44
45impl ApiPeriodV2010PeriodAccountPeriodQueue {
46    pub fn new() -> ApiPeriodV2010PeriodAccountPeriodQueue {
47        ApiPeriodV2010PeriodAccountPeriodQueue {
48            date_updated: None,
49            current_size: None,
50            friendly_name: None,
51            uri: None,
52            account_sid: None,
53            average_wait_time: None,
54            sid: None,
55            date_created: None,
56            max_size: None,
57        }
58    }
59}
60