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