fusionauth_rust_client/models/
secure_identity.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/// SecureIdentity : 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SecureIdentity {
17    #[serde(rename = "identities", skip_serializing_if = "Option::is_none")]
18    pub identities: Option<Vec<models::UserIdentity>>,
19    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
20    #[serde(rename = "breachedPasswordLastCheckedInstant", skip_serializing_if = "Option::is_none")]
21    pub breached_password_last_checked_instant: Option<i64>,
22    #[serde(rename = "breachedPasswordStatus", skip_serializing_if = "Option::is_none")]
23    pub breached_password_status: Option<models::BreachedPasswordStatus>,
24    #[serde(rename = "connectorId", skip_serializing_if = "Option::is_none")]
25    pub connector_id: Option<uuid::Uuid>,
26    #[serde(rename = "encryptionScheme", skip_serializing_if = "Option::is_none")]
27    pub encryption_scheme: Option<String>,
28    #[serde(rename = "factor", skip_serializing_if = "Option::is_none")]
29    pub factor: Option<i32>,
30    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
31    pub id: Option<uuid::Uuid>,
32    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
33    #[serde(rename = "lastLoginInstant", skip_serializing_if = "Option::is_none")]
34    pub last_login_instant: Option<i64>,
35    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
36    pub password: Option<String>,
37    #[serde(rename = "passwordChangeReason", skip_serializing_if = "Option::is_none")]
38    pub password_change_reason: Option<models::ChangePasswordReason>,
39    #[serde(rename = "passwordChangeRequired", skip_serializing_if = "Option::is_none")]
40    pub password_change_required: Option<bool>,
41    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
42    #[serde(rename = "passwordLastUpdateInstant", skip_serializing_if = "Option::is_none")]
43    pub password_last_update_instant: Option<i64>,
44    #[serde(rename = "salt", skip_serializing_if = "Option::is_none")]
45    pub salt: Option<String>,
46    #[serde(rename = "uniqueUsername", skip_serializing_if = "Option::is_none")]
47    pub unique_username: Option<String>,
48    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
49    pub username: Option<String>,
50    #[serde(rename = "usernameStatus", skip_serializing_if = "Option::is_none")]
51    pub username_status: Option<models::ContentStatus>,
52    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
53    pub verified: Option<bool>,
54    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
55    #[serde(rename = "verifiedInstant", skip_serializing_if = "Option::is_none")]
56    pub verified_instant: Option<i64>,
57}
58
59impl SecureIdentity {
60    /// 
61    pub fn new() -> SecureIdentity {
62        SecureIdentity {
63            identities: None,
64            breached_password_last_checked_instant: None,
65            breached_password_status: None,
66            connector_id: None,
67            encryption_scheme: None,
68            factor: None,
69            id: None,
70            last_login_instant: None,
71            password: None,
72            password_change_reason: None,
73            password_change_required: None,
74            password_last_update_instant: None,
75            salt: None,
76            unique_username: None,
77            username: None,
78            username_status: None,
79            verified: None,
80            verified_instant: None,
81        }
82    }
83}
84