fastly_api/models/
dictionary_response.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 DictionaryResponse {
13    /// Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace).
14    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
15    pub name: Option<String>,
16    /// Determines if items in the dictionary are readable or not.
17    #[serde(rename = "write_only", skip_serializing_if = "Option::is_none")]
18    pub write_only: Option<bool>,
19    /// Date and time in ISO 8601 format.
20    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<String>,
22    /// Date and time in ISO 8601 format.
23    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
24    pub deleted_at: Option<String>,
25    /// Date and time in ISO 8601 format.
26    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
27    pub updated_at: Option<String>,
28    #[serde(rename = "service_id", skip_serializing_if = "Option::is_none")]
29    pub service_id: Option<Box<String>>,
30    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
31    pub version: Option<Box<i32>>,
32    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
33    pub id: Option<Box<String>>,
34}
35
36impl DictionaryResponse {
37    pub fn new() -> DictionaryResponse {
38        DictionaryResponse {
39            name: None,
40            write_only: None,
41            created_at: None,
42            deleted_at: None,
43            updated_at: None,
44            service_id: None,
45            version: None,
46            id: None,
47        }
48    }
49}
50
51