authentik-client 2026.2.2-rc1

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum EventsRequestedEnum {
    #[serde(rename = "https://schemas.openid.net/secevent/caep/event-type/session-revoked")]
    HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashSessionRevoked,
    #[serde(rename = "https://schemas.openid.net/secevent/caep/event-type/credential-change")]
    HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashCredentialChange,
    #[serde(rename = "https://schemas.openid.net/secevent/ssf/event-type/verification")]
    HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashSsfSlashEventTypeSlashVerification,
}

impl std::fmt::Display for EventsRequestedEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashSessionRevoked => {
                write!(f, "https://schemas.openid.net/secevent/caep/event-type/session-revoked")
            }
            Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashCredentialChange => {
                write!(
                    f,
                    "https://schemas.openid.net/secevent/caep/event-type/credential-change"
                )
            }
            Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashSsfSlashEventTypeSlashVerification => {
                write!(f, "https://schemas.openid.net/secevent/ssf/event-type/verification")
            }
        }
    }
}

impl Default for EventsRequestedEnum {
    fn default() -> EventsRequestedEnum {
        Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashSessionRevoked
    }
}