fusionauth_rust_client/models/
identity_verified_reason.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.60.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// IdentityVerifiedReason : Models the reason that {@link UserIdentity#verified} was set to true or false.
15/// Models the reason that {@link UserIdentity#verified} was set to true or false.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum IdentityVerifiedReason {
18    #[serde(rename = "Skipped")]
19    Skipped,
20    #[serde(rename = "Trusted")]
21    Trusted,
22    #[serde(rename = "Unverifiable")]
23    Unverifiable,
24    #[serde(rename = "Implicit")]
25    Implicit,
26    #[serde(rename = "Pending")]
27    Pending,
28    #[serde(rename = "Completed")]
29    Completed,
30    #[serde(rename = "Disabled")]
31    Disabled,
32    #[serde(rename = "Administrative")]
33    Administrative,
34    #[serde(rename = "Import")]
35    Import,
36
37}
38
39impl std::fmt::Display for IdentityVerifiedReason {
40    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
41        match self {
42            Self::Skipped => write!(f, "Skipped"),
43            Self::Trusted => write!(f, "Trusted"),
44            Self::Unverifiable => write!(f, "Unverifiable"),
45            Self::Implicit => write!(f, "Implicit"),
46            Self::Pending => write!(f, "Pending"),
47            Self::Completed => write!(f, "Completed"),
48            Self::Disabled => write!(f, "Disabled"),
49            Self::Administrative => write!(f, "Administrative"),
50            Self::Import => write!(f, "Import"),
51        }
52    }
53}
54
55impl Default for IdentityVerifiedReason {
56    fn default() -> IdentityVerifiedReason {
57        Self::Skipped
58    }
59}
60