authentik_client/models/
saml_provider_logout_method_enum.rs

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