fastly_api/models/logging_use_tls_string.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/// LoggingUseTlsString : Whether to use TLS.
9
10use std::fmt;
11
12/// Whether to use TLS.
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum LoggingUseTlsString {
15 #[serde(rename = "0")]
16 NoTls,
17 #[serde(rename = "1")]
18 UseTls,
19
20}
21
22impl fmt::Display for LoggingUseTlsString {
23 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24 match self {
25 Self::NoTls => write!(f, "{}", "0"),
26 Self::UseTls => write!(f, "{}", "1"),
27 }
28 }
29}
30
31impl Default for LoggingUseTlsString {
32 fn default() -> LoggingUseTlsString {
33 Self::NoTls
34 }
35}
36
37
38
39