Skip to main content

authentik_client/models/
proxy_mode.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.6
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14///
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ProxyMode {
17    #[serde(rename = "proxy")]
18    Proxy,
19    #[serde(rename = "forward_single")]
20    ForwardSingle,
21    #[serde(rename = "forward_domain")]
22    ForwardDomain,
23}
24
25impl std::fmt::Display for ProxyMode {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Proxy => write!(f, "proxy"),
29            Self::ForwardSingle => write!(f, "forward_single"),
30            Self::ForwardDomain => write!(f, "forward_domain"),
31        }
32    }
33}
34
35impl Default for ProxyMode {
36    fn default() -> ProxyMode {
37        Self::Proxy
38    }
39}