fastly_api/models/
automation_token_create_response_all_of.rs

1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) 
5 *
6 */
7
8
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct AutomationTokenCreateResponseAllOf {
13    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
14    pub id: Option<Box<crate::models::ReadOnlyId>>,
15    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
16    pub user_id: Option<Box<crate::models::ReadOnlyUserId>>,
17    #[serde(rename = "customer_id", skip_serializing_if = "Option::is_none")]
18    pub customer_id: Option<Box<crate::models::ReadOnlyCustomerId>>,
19    /// A UTC timestamp of when the token was created. 
20    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<String>,
22    #[serde(rename = "access_token", skip_serializing_if = "Option::is_none")]
23    pub access_token: Option<String>,
24    /// Indicates whether TLS access is enabled for the token.
25    #[serde(rename = "tls_access", skip_serializing_if = "Option::is_none")]
26    pub tls_access: Option<bool>,
27    /// A UTC timestamp of when the token was last used.
28    #[serde(rename = "last_used_at", skip_serializing_if = "Option::is_none")]
29    pub last_used_at: Option<String>,
30    /// The User-Agent header of the client that last used the token.
31    #[serde(rename = "user_agent", skip_serializing_if = "Option::is_none")]
32    pub user_agent: Option<String>,
33}
34
35impl AutomationTokenCreateResponseAllOf {
36    pub fn new() -> AutomationTokenCreateResponseAllOf {
37        AutomationTokenCreateResponseAllOf {
38            id: None,
39            user_id: None,
40            customer_id: None,
41            created_at: None,
42            access_token: None,
43            tls_access: None,
44            last_used_at: None,
45            user_agent: None,
46        }
47    }
48}
49
50