authentik_rust/models/
sp_binding_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// SpBindingEnum : * `redirect` - Redirect * `post` - Post
14/// * `redirect` - Redirect * `post` - Post
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum SpBindingEnum {
17    #[serde(rename = "redirect")]
18    Redirect,
19    #[serde(rename = "post")]
20    Post,
21
22}
23
24impl ToString for SpBindingEnum {
25    fn to_string(&self) -> String {
26        match self {
27            Self::Redirect => String::from("redirect"),
28            Self::Post => String::from("post"),
29        }
30    }
31}
32
33impl Default for SpBindingEnum {
34    fn default() -> SpBindingEnum {
35        Self::Redirect
36    }
37}
38