bitwarden_api_api/models/
saml2_binding_type.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[repr(i64)]
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
serde_repr::Serialize_repr,
serde_repr::Deserialize_repr,
)]
pub enum Saml2BindingType {
HttpRedirect = 1,
HttpPost = 2,
}
impl std::fmt::Display for Saml2BindingType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::HttpRedirect => write!(f, "1"),
Self::HttpPost => write!(f, "2"),
}
}
}
impl Default for Saml2BindingType {
fn default() -> Saml2BindingType {
Self::HttpRedirect
}
}