Skip to main content

fastly_api/models/
routing_config_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/// RoutingConfigResponse : All attributes for a routing config response.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct RoutingConfigResponse {
14    /// Date and time in ISO 8601 format.
15    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
16    pub created_at: Option<String>,
17    /// Date and time in ISO 8601 format.
18    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
19    pub updated_at: Option<String>,
20    /// Alphanumeric string identifying the routing config.
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<String>,
23    /// The user-defined name for the routing config.
24    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25    pub name: Option<String>,
26    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
27    pub state: Option<crate::models::RoutingConfigState>,
28    /// Timestamp of when the version was most recently activated. `null` if the version has never been activated.
29    #[serde(rename = "activated_at", skip_serializing_if = "Option::is_none")]
30    pub activated_at: Option<String>,
31    /// HATEOAS links to related resources.
32    #[serde(rename = "links", skip_serializing_if = "Option::is_none")]
33    pub links: Option<::std::collections::HashMap<String, String>>,
34}
35
36impl RoutingConfigResponse {
37    /// All attributes for a routing config response.
38    pub fn new() -> RoutingConfigResponse {
39        RoutingConfigResponse {
40            created_at: None,
41            updated_at: None,
42            id: None,
43            name: None,
44            state: None,
45            activated_at: None,
46            links: None,
47        }
48    }
49}
50
51