fusionauth_rust_client/models/
registration_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RegistrationResponse {
17 #[serde(rename = "refreshToken", skip_serializing_if = "Option::is_none")]
18 pub refresh_token: Option<String>,
19 #[serde(rename = "refreshTokenId", skip_serializing_if = "Option::is_none")]
20 pub refresh_token_id: Option<uuid::Uuid>,
21 #[serde(rename = "registration", skip_serializing_if = "Option::is_none")]
22 pub registration: Option<Box<models::UserRegistration>>,
23 #[serde(rename = "registrationVerificationId", skip_serializing_if = "Option::is_none")]
24 pub registration_verification_id: Option<String>,
25 #[serde(rename = "registrationVerificationOneTimeCode", skip_serializing_if = "Option::is_none")]
26 pub registration_verification_one_time_code: Option<String>,
27 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
28 pub token: Option<String>,
29 #[serde(rename = "tokenExpirationInstant", skip_serializing_if = "Option::is_none")]
31 pub token_expiration_instant: Option<i64>,
32 #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
33 pub user: Option<Box<models::User>>,
34}
35
36impl RegistrationResponse {
37 pub fn new() -> RegistrationResponse {
39 RegistrationResponse {
40 refresh_token: None,
41 refresh_token_id: None,
42 registration: None,
43 registration_verification_id: None,
44 registration_verification_one_time_code: None,
45 token: None,
46 token_expiration_instant: None,
47 user: None,
48 }
49 }
50}
51