fastly_api/models/
content.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 Content {
13    #[serde(rename = "hash", skip_serializing_if = "Option::is_none")]
14    pub hash: Option<String>,
15    #[serde(rename = "request", skip_serializing_if = "Option::is_none")]
16    pub request: Option<::std::collections::HashMap<String, serde_json::Value>>,
17    #[serde(rename = "response", skip_serializing_if = "Option::is_none")]
18    pub response: Option<::std::collections::HashMap<String, serde_json::Value>>,
19    #[serde(rename = "response_time", skip_serializing_if = "Option::is_none")]
20    pub response_time: Option<f32>,
21    #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
22    pub server: Option<String>,
23    #[serde(rename = "pop", skip_serializing_if = "Option::is_none")]
24    pub pop: Option<String>,
25}
26
27impl Content {
28    pub fn new() -> Content {
29        Content {
30            hash: None,
31            request: None,
32            response: None,
33            response_time: None,
34            server: None,
35            pop: None,
36        }
37    }
38}
39
40