fastly_api/models/
logging_logentries_additional.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 LoggingLogentriesAdditional {
13    /// The port number.
14    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
15    pub port: Option<i32>,
16    /// Use token based authentication.
17    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
18    pub token: Option<String>,
19    #[serde(rename = "use_tls", skip_serializing_if = "Option::is_none")]
20    pub use_tls: Option<crate::models::LoggingUseTlsString>,
21    /// The region to which to stream logs.
22    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
23    pub region: Option<Region>,
24}
25
26impl LoggingLogentriesAdditional {
27    pub fn new() -> LoggingLogentriesAdditional {
28        LoggingLogentriesAdditional {
29            port: None,
30            token: None,
31            use_tls: None,
32            region: None,
33        }
34    }
35}
36
37/// The region to which to stream logs.
38#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39pub enum Region {
40    #[serde(rename = "US")]
41    US,
42    #[serde(rename = "US-2")]
43    US2,
44    #[serde(rename = "US-3")]
45    US3,
46    #[serde(rename = "EU")]
47    EU,
48    #[serde(rename = "CA")]
49    CA,
50    #[serde(rename = "AU")]
51    AU,
52    #[serde(rename = "AP")]
53    AP,
54}
55
56impl Default for Region {
57    fn default() -> Region {
58        Self::US
59    }
60}
61