fastly_api/models/
ddos_protection_invalid_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 DdosProtectionInvalidRequest {
13    #[serde(rename = "title")]
14    pub title: String,
15    #[serde(rename = "status")]
16    pub status: Status,
17    #[serde(rename = "detail")]
18    pub detail: String,
19    #[serde(rename = "errors")]
20    pub errors: Vec<crate::models::DdosProtectionErrorErrors>,
21}
22
23impl DdosProtectionInvalidRequest {
24    pub fn new(title: String, status: Status, detail: String, errors: Vec<crate::models::DdosProtectionErrorErrors>) -> DdosProtectionInvalidRequest {
25        DdosProtectionInvalidRequest {
26            title,
27            status,
28            detail,
29            errors,
30        }
31    }
32}
33
34/// 
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Status {
37    #[serde(rename = "400")]
38    Status400,
39}
40
41impl Default for Status {
42    fn default() -> Status {
43        Self::Status400
44    }
45}
46