authentik_rust/models/
invalid_response_action_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/// InvalidResponseActionEnum : * `retry` - Retry * `restart` - Restart * `restart_with_context` - Restart With Context
14/// * `retry` - Retry * `restart` - Restart * `restart_with_context` - Restart With Context
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum InvalidResponseActionEnum {
17    #[serde(rename = "retry")]
18    Retry,
19    #[serde(rename = "restart")]
20    Restart,
21    #[serde(rename = "restart_with_context")]
22    RestartWithContext,
23
24}
25
26impl ToString for InvalidResponseActionEnum {
27    fn to_string(&self) -> String {
28        match self {
29            Self::Retry => String::from("retry"),
30            Self::Restart => String::from("restart"),
31            Self::RestartWithContext => String::from("restart_with_context"),
32        }
33    }
34}
35
36impl Default for InvalidResponseActionEnum {
37    fn default() -> InvalidResponseActionEnum {
38        Self::Retry
39    }
40}
41