fastly_api/models/logging_placement.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/// LoggingPlacement : Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
9
10use std::fmt;
11
12/// Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum LoggingPlacement {
15 #[serde(rename = "none")]
16 None,
17 #[serde(rename = "null")]
18 Null,
19
20}
21
22impl fmt::Display for LoggingPlacement {
23 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24 match self {
25 Self::None => write!(f, "{}", "none"),
26 Self::Null => write!(f, "{}", "null"),
27 }
28 }
29}
30
31impl Default for LoggingPlacement {
32 fn default() -> LoggingPlacement {
33 Self::None
34 }
35}
36
37
38
39