fusionauth_rust_client/models/
breached_password_status.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/// BreachedPasswordStatus : 
15/// 
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum BreachedPasswordStatus {
18    #[serde(rename = "None")]
19    None,
20    #[serde(rename = "ExactMatch")]
21    ExactMatch,
22    #[serde(rename = "SubAddressMatch")]
23    SubAddressMatch,
24    #[serde(rename = "PasswordOnly")]
25    PasswordOnly,
26    #[serde(rename = "CommonPassword")]
27    CommonPassword,
28
29}
30
31impl std::fmt::Display for BreachedPasswordStatus {
32    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33        match self {
34            Self::None => write!(f, "None"),
35            Self::ExactMatch => write!(f, "ExactMatch"),
36            Self::SubAddressMatch => write!(f, "SubAddressMatch"),
37            Self::PasswordOnly => write!(f, "PasswordOnly"),
38            Self::CommonPassword => write!(f, "CommonPassword"),
39        }
40    }
41}
42
43impl Default for BreachedPasswordStatus {
44    fn default() -> BreachedPasswordStatus {
45        Self::None
46    }
47}
48