Skip to main content

authentik_client/models/
saml_bindings_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 SamlBindingsEnum {
17    #[serde(rename = "redirect")]
18    Redirect,
19    #[serde(rename = "post")]
20    Post,
21}
22
23impl std::fmt::Display for SamlBindingsEnum {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Redirect => write!(f, "redirect"),
27            Self::Post => write!(f, "post"),
28        }
29    }
30}
31
32impl Default for SamlBindingsEnum {
33    fn default() -> SamlBindingsEnum {
34        Self::Redirect
35    }
36}