fusionauth_rust_client/models/
logout_behavior.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum LogoutBehavior {
18 #[serde(rename = "RedirectOnly")]
19 RedirectOnly,
20 #[serde(rename = "AllApplications")]
21 AllApplications,
22
23}
24
25impl std::fmt::Display for LogoutBehavior {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::RedirectOnly => write!(f, "RedirectOnly"),
29 Self::AllApplications => write!(f, "AllApplications"),
30 }
31 }
32}
33
34impl Default for LogoutBehavior {
35 fn default() -> LogoutBehavior {
36 Self::RedirectOnly
37 }
38}
39