bitwarden_api_api/models/
saml2_binding_type.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[repr(i64)]
17#[derive(
18 Clone,
19 Copy,
20 Debug,
21 Eq,
22 PartialEq,
23 Ord,
24 PartialOrd,
25 Hash,
26 serde_repr::Serialize_repr,
27 serde_repr::Deserialize_repr,
28)]
29pub enum Saml2BindingType {
30 HttpRedirect = 1,
31 HttpPost = 2,
32}
33
34impl std::fmt::Display for Saml2BindingType {
35 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36 match self {
37 Self::HttpRedirect => write!(f, "1"),
38 Self::HttpPost => write!(f, "2"),
39 }
40 }
41}
42
43impl Default for Saml2BindingType {
44 fn default() -> Saml2BindingType {
45 Self::HttpRedirect
46 }
47}