fastly_api/models/
diff_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 DiffResponse {
13    /// The version number being diffed from.
14    #[serde(rename = "from", skip_serializing_if = "Option::is_none")]
15    pub from: Option<i32>,
16    /// The version number being diffed to.
17    #[serde(rename = "to", skip_serializing_if = "Option::is_none")]
18    pub to: Option<i32>,
19    /// The format the diff is being returned in (`text`, `html` or `html_simple`).
20    #[serde(rename = "format", skip_serializing_if = "Option::is_none")]
21    pub format: Option<String>,
22    /// The differences between two specified service versions. Returns the full config if the version configurations are identical.
23    #[serde(rename = "diff", skip_serializing_if = "Option::is_none")]
24    pub diff: Option<String>,
25}
26
27impl DiffResponse {
28    pub fn new() -> DiffResponse {
29        DiffResponse {
30            from: None,
31            to: None,
32            format: None,
33            diff: None,
34        }
35    }
36}
37
38