Skip to main content

authentik_client/models/
matching_mode_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14///
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum MatchingModeEnum {
17    #[serde(rename = "strict")]
18    Strict,
19    #[serde(rename = "regex")]
20    Regex,
21}
22
23impl std::fmt::Display for MatchingModeEnum {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Strict => write!(f, "strict"),
27            Self::Regex => write!(f, "regex"),
28        }
29    }
30}
31
32impl Default for MatchingModeEnum {
33    fn default() -> MatchingModeEnum {
34        Self::Strict
35    }
36}