fastly_api/models/initial_version_path.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/// InitialVersionPath : A path on the initial version, with its rules.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct InitialVersionPath {
14 /// The URL path pattern, beginning with `/`. Maximum 2048 characters.
15 #[serde(rename = "path")]
16 pub path: String,
17 /// The rules to create on this path.
18 #[serde(rename = "rules", skip_serializing_if = "Option::is_none")]
19 pub rules: Option<Vec<crate::models::RuleCreate>>,
20}
21
22impl InitialVersionPath {
23 /// A path on the initial version, with its rules.
24 pub fn new(path: String) -> InitialVersionPath {
25 InitialVersionPath {
26 path,
27 rules: None,
28 }
29 }
30}
31
32