fusionauth_rust_client/models/
system_trusted_proxy_configuration_policy.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum SystemTrustedProxyConfigurationPolicy {
18 #[serde(rename = "All")]
19 All,
20 #[serde(rename = "OnlyConfigured")]
21 OnlyConfigured,
22
23}
24
25impl std::fmt::Display for SystemTrustedProxyConfigurationPolicy {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::All => write!(f, "All"),
29 Self::OnlyConfigured => write!(f, "OnlyConfigured"),
30 }
31 }
32}
33
34impl Default for SystemTrustedProxyConfigurationPolicy {
35 fn default() -> SystemTrustedProxyConfigurationPolicy {
36 Self::All
37 }
38}
39