fusionauth_rust_client/models/
canonicalization_method.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.57.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CanonicalizationMethod : XML canonicalization method enumeration. This is used for the IdP and SP side of FusionAuth SAML.
15/// XML canonicalization method enumeration. This is used for the IdP and SP side of FusionAuth SAML.
16#[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