fastly_api/models/
create_response_object_request.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 CreateResponseObjectRequest {
13    /// The name of the response object to create.
14    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
15    pub name: Option<String>,
16    /// The status code the response will have. Defaults to 200.
17    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
18    pub status: Option<String>,
19    /// The status text the response will have. Defaults to 'OK'.
20    #[serde(rename = "response", skip_serializing_if = "Option::is_none")]
21    pub response: Option<String>,
22    /// The content the response will deliver.
23    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
24    pub content: Option<String>,
25    /// The MIME type of your response content.
26    #[serde(rename = "content_type", skip_serializing_if = "Option::is_none")]
27    pub content_type: Option<String>,
28    /// Condition which, if met, will select this configuration during a request. Optional.
29    #[serde(rename = "request_condition", skip_serializing_if = "Option::is_none")]
30    pub request_condition: Option<String>,
31    /// Name of the cache condition controlling when this configuration applies.
32    #[serde(rename = "cache_condition", skip_serializing_if = "Option::is_none")]
33    pub cache_condition: Option<String>,
34}
35
36impl CreateResponseObjectRequest {
37    pub fn new() -> CreateResponseObjectRequest {
38        CreateResponseObjectRequest {
39            name: None,
40            status: None,
41            response: None,
42            content: None,
43            content_type: None,
44            request_condition: None,
45            cache_condition: None,
46        }
47    }
48}
49
50