fusionauth_rust_client/models/
registration_request.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RegistrationRequest {
17 #[serde(rename = "disableDomainBlock", skip_serializing_if = "Option::is_none")]
18 pub disable_domain_block: Option<bool>,
19 #[serde(rename = "generateAuthenticationToken", skip_serializing_if = "Option::is_none")]
20 pub generate_authentication_token: Option<bool>,
21 #[serde(rename = "registration", skip_serializing_if = "Option::is_none")]
22 pub registration: Option<Box<models::UserRegistration>>,
23 #[serde(rename = "sendSetPasswordEmail", skip_serializing_if = "Option::is_none")]
24 pub send_set_password_email: Option<bool>,
25 #[serde(rename = "sendSetPasswordIdentityType", skip_serializing_if = "Option::is_none")]
26 pub send_set_password_identity_type: Option<models::SendSetPasswordIdentityType>,
27 #[serde(rename = "skipRegistrationVerification", skip_serializing_if = "Option::is_none")]
28 pub skip_registration_verification: Option<bool>,
29 #[serde(rename = "skipVerification", skip_serializing_if = "Option::is_none")]
30 pub skip_verification: Option<bool>,
31 #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
32 pub user: Option<Box<models::User>>,
33 #[serde(rename = "eventInfo", skip_serializing_if = "Option::is_none")]
34 pub event_info: Option<Box<models::EventInfo>>,
35}
36
37impl RegistrationRequest {
38 pub fn new() -> RegistrationRequest {
40 RegistrationRequest {
41 disable_domain_block: None,
42 generate_authentication_token: None,
43 registration: None,
44 send_set_password_email: None,
45 send_set_password_identity_type: None,
46 skip_registration_verification: None,
47 skip_verification: None,
48 user: None,
49 event_info: None,
50 }
51 }
52}
53