authentik_client/models/
endpoint_auth_mode_enum.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum EndpointAuthModeEnum {
17 #[serde(rename = "static")]
18 Static,
19 #[serde(rename = "prompt")]
20 Prompt,
21}
22
23impl std::fmt::Display for EndpointAuthModeEnum {
24 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25 match self {
26 Self::Static => write!(f, "static"),
27 Self::Prompt => write!(f, "prompt"),
28 }
29 }
30}
31
32impl Default for EndpointAuthModeEnum {
33 fn default() -> EndpointAuthModeEnum {
34 Self::Static
35 }
36}