fastly_api/models/
service_version_detail.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 ServiceVersionDetail {
13    /// Whether this is the active version or not.
14    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
15    pub active: Option<bool>,
16    /// A freeform descriptive note.
17    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
18    pub comment: Option<String>,
19    /// Unused at this time.
20    #[serde(rename = "deployed", skip_serializing_if = "Option::is_none")]
21    pub deployed: Option<bool>,
22    /// Whether this version is locked or not. Objects can not be added or edited on locked versions.
23    #[serde(rename = "locked", skip_serializing_if = "Option::is_none")]
24    pub locked: Option<bool>,
25    /// The number of this version.
26    #[serde(rename = "number", skip_serializing_if = "Option::is_none")]
27    pub number: Option<i32>,
28    /// Unused at this time.
29    #[serde(rename = "staging", skip_serializing_if = "Option::is_none")]
30    pub staging: Option<bool>,
31    /// Unused at this time.
32    #[serde(rename = "testing", skip_serializing_if = "Option::is_none")]
33    pub testing: Option<bool>,
34    /// Date and time in ISO 8601 format.
35    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
36    pub created_at: Option<String>,
37    /// Date and time in ISO 8601 format.
38    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
39    pub deleted_at: Option<String>,
40    /// Date and time in ISO 8601 format.
41    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
42    pub updated_at: Option<String>,
43    #[serde(rename = "service_id", skip_serializing_if = "Option::is_none")]
44    pub service_id: Option<Box<String>>,
45    /// A list of environments where the service has been deployed.
46    #[serde(rename = "environments", skip_serializing_if = "Option::is_none")]
47    pub environments: Option<Vec<crate::models::Environment>>,
48    /// List of backends associated to this service.
49    #[serde(rename = "backends", skip_serializing_if = "Option::is_none")]
50    pub backends: Option<Vec<crate::models::BackendResponse>>,
51    /// List of cache settings associated to this service.
52    #[serde(rename = "cache_settings", skip_serializing_if = "Option::is_none")]
53    pub cache_settings: Option<Vec<crate::models::CacheSettingResponse>>,
54    /// List of conditions associated to this service.
55    #[serde(rename = "conditions", skip_serializing_if = "Option::is_none")]
56    pub conditions: Option<Vec<crate::models::ConditionResponse>>,
57    /// List of directors associated to this service.
58    #[serde(rename = "directors", skip_serializing_if = "Option::is_none")]
59    pub directors: Option<Vec<crate::models::Director>>,
60    /// List of domains associated to this service.
61    #[serde(rename = "domains", skip_serializing_if = "Option::is_none")]
62    pub domains: Option<Vec<crate::models::DomainResponse>>,
63    /// List of gzip rules associated to this service.
64    #[serde(rename = "gzips", skip_serializing_if = "Option::is_none")]
65    pub gzips: Option<Vec<crate::models::GzipResponse>>,
66    /// List of headers associated to this service.
67    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
68    pub headers: Option<Vec<crate::models::HeaderResponse>>,
69    /// List of healthchecks associated to this service.
70    #[serde(rename = "healthchecks", skip_serializing_if = "Option::is_none")]
71    pub healthchecks: Option<Vec<crate::models::HealthcheckResponse>>,
72    /// List of request settings for this service.
73    #[serde(rename = "request_settings", skip_serializing_if = "Option::is_none")]
74    pub request_settings: Option<Vec<crate::models::RequestSettingsResponse>>,
75    /// List of response objects for this service.
76    #[serde(rename = "response_objects", skip_serializing_if = "Option::is_none")]
77    pub response_objects: Option<Vec<crate::models::ResponseObjectResponse>>,
78    #[serde(rename = "settings", skip_serializing_if = "Option::is_none")]
79    pub settings: Option<Box<crate::models::VersionDetailSettings>>,
80    /// List of VCL snippets for this service.
81    #[serde(rename = "snippets", skip_serializing_if = "Option::is_none")]
82    pub snippets: Option<Vec<crate::models::SchemasSnippetResponse>>,
83    /// List of VCL files for this service.
84    #[serde(rename = "vcls", skip_serializing_if = "Option::is_none")]
85    pub vcls: Option<Vec<crate::models::SchemasVclResponse>>,
86    /// A list of Wordpress rules with this service.
87    #[serde(rename = "wordpress", skip_serializing_if = "Option::is_none")]
88    pub wordpress: Option<Vec<serde_json::Value>>,
89}
90
91impl ServiceVersionDetail {
92    pub fn new() -> ServiceVersionDetail {
93        ServiceVersionDetail {
94            active: None,
95            comment: None,
96            deployed: None,
97            locked: None,
98            number: None,
99            staging: None,
100            testing: None,
101            created_at: None,
102            deleted_at: None,
103            updated_at: None,
104            service_id: None,
105            environments: None,
106            backends: None,
107            cache_settings: None,
108            conditions: None,
109            directors: None,
110            domains: None,
111            gzips: None,
112            headers: None,
113            healthchecks: None,
114            request_settings: None,
115            response_objects: None,
116            settings: None,
117            snippets: None,
118            vcls: None,
119            wordpress: None,
120        }
121    }
122}
123
124