use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SamlLogoutMethods {
#[serde(rename = "frontchannel_iframe")]
FrontchannelIframe,
#[serde(rename = "frontchannel_native")]
FrontchannelNative,
#[serde(rename = "backchannel")]
Backchannel,
}
impl std::fmt::Display for SamlLogoutMethods {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::FrontchannelIframe => write!(f, "frontchannel_iframe"),
Self::FrontchannelNative => write!(f, "frontchannel_native"),
Self::Backchannel => write!(f, "backchannel"),
}
}
}
impl Default for SamlLogoutMethods {
fn default() -> SamlLogoutMethods {
Self::FrontchannelIframe
}
}