authentik_rust/models/
challenge_choices.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/// ChallengeChoices : * `native` - NATIVE * `shell` - SHELL * `redirect` - REDIRECT
14/// * `native` - NATIVE * `shell` - SHELL * `redirect` - REDIRECT
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ChallengeChoices {
17    #[serde(rename = "native")]
18    Native,
19    #[serde(rename = "shell")]
20    Shell,
21    #[serde(rename = "redirect")]
22    Redirect,
23
24}
25
26impl ToString for ChallengeChoices {
27    fn to_string(&self) -> String {
28        match self {
29            Self::Native => String::from("native"),
30            Self::Shell => String::from("shell"),
31            Self::Redirect => String::from("redirect"),
32        }
33    }
34}
35
36impl Default for ChallengeChoices {
37    fn default() -> ChallengeChoices {
38        Self::Native
39    }
40}
41