fusionauth_rust_client/models/
user_registration.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
33 pub insert_instant: Option<i64>,
34 #[serde(rename = "lastLoginInstant", skip_serializing_if = "Option::is_none")]
36 pub last_login_instant: Option<i64>,
37 #[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 #[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 #[serde(rename = "verifiedInstant", skip_serializing_if = "Option::is_none")]
53 pub verified_instant: Option<i64>,
54}
55
56impl UserRegistration {
57 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