fastly_api/models/
domain_response.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 DomainResponse {
13    /// A freeform descriptive note.
14    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
15    pub comment: Option<String>,
16    /// The name of the domain or domains associated with this service.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    #[serde(rename = "service_id", skip_serializing_if = "Option::is_none")]
20    pub service_id: Option<Box<String>>,
21    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
22    pub version: Option<Box<i32>>,
23    /// Date and time in ISO 8601 format.
24    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
25    pub created_at: Option<String>,
26    /// Date and time in ISO 8601 format.
27    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
28    pub deleted_at: Option<String>,
29    /// Date and time in ISO 8601 format.
30    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
31    pub updated_at: Option<String>,
32}
33
34impl DomainResponse {
35    pub fn new() -> DomainResponse {
36        DomainResponse {
37            comment: None,
38            name: None,
39            service_id: None,
40            version: None,
41            created_at: None,
42            deleted_at: None,
43            updated_at: None,
44        }
45    }
46}
47
48