fusionauth_rust_client/models/
registration_response.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/// RegistrationResponse : Registration API request object.
15#[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    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
30    #[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    /// Registration API request object.
38    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