fastly_api/models/
version.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 Version {
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}
35
36impl Version {
37    pub fn new() -> Version {
38        Version {
39            active: None,
40            comment: None,
41            deployed: None,
42            locked: None,
43            number: None,
44            staging: None,
45            testing: None,
46        }
47    }
48}
49
50