authentik_rust/models/issuer_mode_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/// IssuerModeEnum : * `global` - Same identifier is used for all providers * `per_provider` - Each provider has a different issuer, based on the application slug.
14/// * `global` - Same identifier is used for all providers * `per_provider` - Each provider has a different issuer, based on the application slug.
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum IssuerModeEnum {
17 #[serde(rename = "global")]
18 Global,
19 #[serde(rename = "per_provider")]
20 PerProvider,
21
22}
23
24impl ToString for IssuerModeEnum {
25 fn to_string(&self) -> String {
26 match self {
27 Self::Global => String::from("global"),
28 Self::PerProvider => String::from("per_provider"),
29 }
30 }
31}
32
33impl Default for IssuerModeEnum {
34 fn default() -> IssuerModeEnum {
35 Self::Global
36 }
37}
38