authentik_client/models/
policy_engine_mode.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.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 PolicyEngineMode {
17    #[serde(rename = "all")]
18    All,
19    #[serde(rename = "any")]
20    Any,
21}
22
23impl std::fmt::Display for PolicyEngineMode {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::All => write!(f, "all"),
27            Self::Any => write!(f, "any"),
28        }
29    }
30}
31
32impl Default for PolicyEngineMode {
33    fn default() -> PolicyEngineMode {
34        Self::All
35    }
36}