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