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