fusionauth_rust_client/models/
user_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/// UserIdentity : 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserIdentity {
17    #[serde(rename = "displayValue", skip_serializing_if = "Option::is_none")]
18    pub display_value: Option<String>,
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 = "insertInstant", skip_serializing_if = "Option::is_none")]
21    pub insert_instant: Option<i64>,
22    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
23    #[serde(rename = "lastLoginInstant", skip_serializing_if = "Option::is_none")]
24    pub last_login_instant: Option<i64>,
25    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
26    #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
27    pub last_update_instant: Option<i64>,
28    #[serde(rename = "moderationStatus", skip_serializing_if = "Option::is_none")]
29    pub moderation_status: Option<models::ContentStatus>,
30    #[serde(rename = "primary", skip_serializing_if = "Option::is_none")]
31    pub primary: Option<bool>,
32    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
33    pub r#type: Option<Box<models::IdentityType>>,
34    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
35    pub value: Option<String>,
36    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
37    pub verified: Option<bool>,
38    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
39    #[serde(rename = "verifiedInstant", skip_serializing_if = "Option::is_none")]
40    pub verified_instant: Option<i64>,
41    #[serde(rename = "verifiedReason", skip_serializing_if = "Option::is_none")]
42    pub verified_reason: Option<models::IdentityVerifiedReason>,
43}
44
45impl UserIdentity {
46    /// 
47    pub fn new() -> UserIdentity {
48        UserIdentity {
49            display_value: None,
50            insert_instant: None,
51            last_login_instant: None,
52            last_update_instant: None,
53            moderation_status: None,
54            primary: None,
55            r#type: None,
56            value: None,
57            verified: None,
58            verified_instant: None,
59            verified_reason: None,
60        }
61    }
62}
63