fusionauth_rust_client/models/
user_registration.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/// UserRegistration : User registration information for a single application.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserRegistration {
17    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18    pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
19    #[serde(rename = "preferredLanguages", skip_serializing_if = "Option::is_none")]
20    pub preferred_languages: Option<Vec<String>>,
21    #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
22    pub tokens: Option<std::collections::HashMap<String, String>>,
23    #[serde(rename = "applicationId", skip_serializing_if = "Option::is_none")]
24    pub application_id: Option<uuid::Uuid>,
25    #[serde(rename = "authenticationToken", skip_serializing_if = "Option::is_none")]
26    pub authentication_token: Option<String>,
27    #[serde(rename = "cleanSpeakId", skip_serializing_if = "Option::is_none")]
28    pub clean_speak_id: Option<uuid::Uuid>,
29    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
30    pub id: Option<uuid::Uuid>,
31    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
32    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
33    pub insert_instant: Option<i64>,
34    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
35    #[serde(rename = "lastLoginInstant", skip_serializing_if = "Option::is_none")]
36    pub last_login_instant: Option<i64>,
37    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
38    #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
39    pub last_update_instant: Option<i64>,
40    #[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
41    pub roles: Option<Vec<serde_json::Value>>,
42    /// Timezone Identifier
43    #[serde(rename = "timezone", skip_serializing_if = "Option::is_none")]
44    pub timezone: Option<String>,
45    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
46    pub username: Option<String>,
47    #[serde(rename = "usernameStatus", skip_serializing_if = "Option::is_none")]
48    pub username_status: Option<models::ContentStatus>,
49    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
50    pub verified: Option<bool>,
51    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
52    #[serde(rename = "verifiedInstant", skip_serializing_if = "Option::is_none")]
53    pub verified_instant: Option<i64>,
54}
55
56impl UserRegistration {
57    /// User registration information for a single application.
58    pub fn new() -> UserRegistration {
59        UserRegistration {
60            data: None,
61            preferred_languages: None,
62            tokens: None,
63            application_id: None,
64            authentication_token: None,
65            clean_speak_id: None,
66            id: None,
67            insert_instant: None,
68            last_login_instant: None,
69            last_update_instant: None,
70            roles: None,
71            timezone: None,
72            username: None,
73            username_status: None,
74            verified: None,
75            verified_instant: None,
76        }
77    }
78}
79