Skip to main content

authentik_client/models/
compatibility_mode_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
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 CompatibilityModeEnum {
17    #[serde(rename = "default")]
18    Default,
19    #[serde(rename = "aws")]
20    Aws,
21    #[serde(rename = "slack")]
22    Slack,
23    #[serde(rename = "sfdc")]
24    Sfdc,
25}
26
27impl std::fmt::Display for CompatibilityModeEnum {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Default => write!(f, "default"),
31            Self::Aws => write!(f, "aws"),
32            Self::Slack => write!(f, "slack"),
33            Self::Sfdc => write!(f, "sfdc"),
34        }
35    }
36}
37
38impl Default for CompatibilityModeEnum {
39    fn default() -> CompatibilityModeEnum {
40        Self::Default
41    }
42}