fastly_api/models/
gzip.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 Gzip {
13    /// Name of the cache condition controlling when this configuration applies.
14    #[serde(rename = "cache_condition", skip_serializing_if = "Option::is_none")]
15    pub cache_condition: Option<String>,
16    /// Space-separated list of content types to compress. If you omit this field a default list will be used.
17    #[serde(rename = "content_types", skip_serializing_if = "Option::is_none")]
18    pub content_types: Option<String>,
19    /// Space-separated list of file extensions to compress. If you omit this field a default list will be used.
20    #[serde(rename = "extensions", skip_serializing_if = "Option::is_none")]
21    pub extensions: Option<String>,
22    /// Name of the gzip configuration.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25}
26
27impl Gzip {
28    pub fn new() -> Gzip {
29        Gzip {
30            cache_condition: None,
31            content_types: None,
32            extensions: None,
33            name: None,
34        }
35    }
36}
37
38