authentik_rust/models/
auth_mode_enum.rs1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AuthModeEnum {
17 #[serde(rename = "static")]
18 Static,
19 #[serde(rename = "prompt")]
20 Prompt,
21
22}
23
24impl ToString for AuthModeEnum {
25 fn to_string(&self) -> String {
26 match self {
27 Self::Static => String::from("static"),
28 Self::Prompt => String::from("prompt"),
29 }
30 }
31}
32
33impl Default for AuthModeEnum {
34 fn default() -> AuthModeEnum {
35 Self::Static
36 }
37}
38