authentik_client/models/
events_requested_enum.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum EventsRequestedEnum {
17 #[serde(rename = "https://schemas.openid.net/secevent/caep/event-type/session-revoked")]
18 HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashSessionRevoked,
19 #[serde(rename = "https://schemas.openid.net/secevent/caep/event-type/credential-change")]
20 HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashCredentialChange,
21 #[serde(rename = "https://schemas.openid.net/secevent/ssf/event-type/verification")]
22 HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashSsfSlashEventTypeSlashVerification,
23}
24
25impl std::fmt::Display for EventsRequestedEnum {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashSessionRevoked => {
29 write!(f, "https://schemas.openid.net/secevent/caep/event-type/session-revoked")
30 }
31 Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashCredentialChange => {
32 write!(
33 f,
34 "https://schemas.openid.net/secevent/caep/event-type/credential-change"
35 )
36 }
37 Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashSsfSlashEventTypeSlashVerification => {
38 write!(f, "https://schemas.openid.net/secevent/ssf/event-type/verification")
39 }
40 }
41 }
42}
43
44impl Default for EventsRequestedEnum {
45 fn default() -> EventsRequestedEnum {
46 Self::HttpsColonSlashSlashSchemasOpenidNetSlashSeceventSlashCaepSlashEventTypeSlashSessionRevoked
47 }
48}