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
}
}