fastly_api/models/
log_insights_dimensions.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 LogInsightsDimensions {
13    /// The URL path for this dimension.
14    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
15    pub url: Option<String>,
16    /// The client's country for this dimension.
17    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
18    pub country: Option<String>,
19    /// The HTTP response code for this dimension.
20    #[serde(rename = "status-code", skip_serializing_if = "Option::is_none")]
21    pub status_code: Option<String>,
22    /// The HTTP reason phrase for this dimension.
23    #[serde(rename = "response", skip_serializing_if = "Option::is_none")]
24    pub response: Option<String>,
25    /// The client's browser for this dimension.
26    #[serde(rename = "browser", skip_serializing_if = "Option::is_none")]
27    pub browser: Option<String>,
28    /// The content type of the response for this dimension.
29    #[serde(rename = "content_type", skip_serializing_if = "Option::is_none")]
30    pub content_type: Option<String>,
31    /// The client's device type for this dimension.
32    #[serde(rename = "device", skip_serializing_if = "Option::is_none")]
33    pub device: Option<String>,
34    /// The client's operating system for this dimension.
35    #[serde(rename = "os", skip_serializing_if = "Option::is_none")]
36    pub os: Option<String>,
37}
38
39impl LogInsightsDimensions {
40    pub fn new() -> LogInsightsDimensions {
41        LogInsightsDimensions {
42            url: None,
43            country: None,
44            status_code: None,
45            response: None,
46            browser: None,
47            content_type: None,
48            device: None,
49            os: None,
50        }
51    }
52}
53
54