fastly_api/models/
logging_syslog_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 LoggingSyslogAdditional {
13    #[serde(rename = "message_type", skip_serializing_if = "Option::is_none")]
14    pub message_type: Option<crate::models::LoggingMessageType>,
15    /// The hostname used for the syslog endpoint.
16    #[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
17    pub hostname: Option<String>,
18    /// The IPv4 address used for the syslog endpoint.
19    #[serde(rename = "ipv4", skip_serializing_if = "Option::is_none")]
20    pub ipv4: Option<String>,
21    /// Whether to prepend each message with a specific token.
22    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
23    pub token: Option<String>,
24    #[serde(rename = "use_tls", skip_serializing_if = "Option::is_none")]
25    pub use_tls: Option<crate::models::LoggingUseTlsString>,
26}
27
28impl LoggingSyslogAdditional {
29    pub fn new() -> LoggingSyslogAdditional {
30        LoggingSyslogAdditional {
31            message_type: None,
32            hostname: None,
33            ipv4: None,
34            token: None,
35            use_tls: None,
36        }
37    }
38}
39
40