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