Skip to main content

fastly_api/models/
path_change.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/// PathChange : Modifications to an existing path between versions.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct PathChange {
14    /// Alphanumeric string identifying the path. Stable across versions of the routing config.
15    #[serde(rename = "path_id", skip_serializing_if = "Option::is_none")]
16    pub path_id: Option<String>,
17    /// The current path pattern.
18    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
19    pub path: Option<String>,
20    /// The previous path pattern, if it changed.
21    #[serde(rename = "old_path", skip_serializing_if = "Option::is_none")]
22    pub old_path: Option<String>,
23    /// Rules that were added to this path.
24    #[serde(rename = "rules_added", skip_serializing_if = "Option::is_none")]
25    pub rules_added: Option<Vec<crate::models::RuleResponse>>,
26    /// Rules that were modified on this path.
27    #[serde(rename = "rules_changed", skip_serializing_if = "Option::is_none")]
28    pub rules_changed: Option<Vec<crate::models::RuleChange>>,
29    /// Rules that were removed from this path.
30    #[serde(rename = "rules_deleted", skip_serializing_if = "Option::is_none")]
31    pub rules_deleted: Option<Vec<crate::models::RuleResponse>>,
32}
33
34impl PathChange {
35    /// Modifications to an existing path between versions.
36    pub fn new() -> PathChange {
37        PathChange {
38            path_id: None,
39            path: None,
40            old_path: None,
41            rules_added: None,
42            rules_changed: None,
43            rules_deleted: None,
44        }
45    }
46}
47
48