Skip to main content

fastly_api/models/
network_protect_region.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/// NetworkProtectRegion : The region served by this policy. Default is the only accepted value.
9
10use std::fmt;
11
12/// The region served by this policy. Default is the only accepted value.
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum NetworkProtectRegion {
15    #[serde(rename = "default")]
16    Default,
17
18}
19
20impl fmt::Display for NetworkProtectRegion {
21    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
22        match self {
23            Self::Default => write!(f, "{}", "default"),
24        }
25    }
26}
27
28impl Default for NetworkProtectRegion {
29    fn default() -> NetworkProtectRegion {
30        Self::Default
31    }
32}
33
34
35
36