fastly_api/models/
successful_response_as_object.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/// SuccessfulResponseAsObject : All attributes for a domain response
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct SuccessfulResponseAsObject {
14    /// Date and time in ISO 8601 format.
15    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
16    pub created_at: Option<String>,
17    /// Date and time in ISO 8601 format.
18    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
19    pub updated_at: Option<String>,
20    /// Domain Identifier (UUID).
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<String>,
23    /// The fully-qualified domain name for your domain. Can be created, but not updated.
24    #[serde(rename = "fqdn", skip_serializing_if = "Option::is_none")]
25    pub fqdn: Option<String>,
26    /// The `service_id` associated with your domain or `null` if there is no association.
27    #[serde(rename = "service_id", skip_serializing_if = "Option::is_none")]
28    pub service_id: Option<String>,
29    /// A freeform descriptive note.
30    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
31    pub description: Option<String>,
32    /// Denotes if the domain has at least one TLS activation or not.
33    #[serde(rename = "activated", skip_serializing_if = "Option::is_none")]
34    pub activated: Option<bool>,
35    /// Denotes that the customer has proven ownership over the domain by obtaining a Fastly-managed TLS certificate for it or by providing a their own TLS certificate from a publicly-trusted CA that includes the domain or matching wildcard.     
36    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
37    pub verified: Option<bool>,
38}
39
40impl SuccessfulResponseAsObject {
41    /// All attributes for a domain response
42    pub fn new() -> SuccessfulResponseAsObject {
43        SuccessfulResponseAsObject {
44            created_at: None,
45            updated_at: None,
46            id: None,
47            fqdn: None,
48            service_id: None,
49            description: None,
50            activated: None,
51            verified: None,
52        }
53    }
54}
55
56