Skip to main content

fastly_api/models/
arc_session_log_entry.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/// ArcSessionLogEntry : A single request and response pair recorded within a session.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct ArcSessionLogEntry {
14    /// The raw request data.
15    #[serde(rename = "request", skip_serializing_if = "Option::is_none")]
16    pub request: Option<String>,
17    /// The raw response data.
18    #[serde(rename = "response", skip_serializing_if = "Option::is_none")]
19    pub response: Option<String>,
20    /// Additional attributes recorded for this request/response pair.
21    #[serde(rename = "attrs", skip_serializing_if = "Option::is_none")]
22    pub attrs: Option<::std::collections::HashMap<String, serde_json::Value>>,
23}
24
25impl ArcSessionLogEntry {
26    /// A single request and response pair recorded within a session.
27    pub fn new() -> ArcSessionLogEntry {
28        ArcSessionLogEntry {
29            request: None,
30            response: None,
31            attrs: None,
32        }
33    }
34}
35
36