fusionauth_rust_client/models/
tenant_phone_configuration.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TenantPhoneConfiguration {
17 #[serde(rename = "forgotPasswordTemplateId", skip_serializing_if = "Option::is_none")]
18 pub forgot_password_template_id: Option<uuid::Uuid>,
19 #[serde(rename = "identityUpdateTemplateId", skip_serializing_if = "Option::is_none")]
20 pub identity_update_template_id: Option<uuid::Uuid>,
21 #[serde(rename = "implicitPhoneVerificationAllowed", skip_serializing_if = "Option::is_none")]
22 pub implicit_phone_verification_allowed: Option<bool>,
23 #[serde(rename = "loginIdInUseOnCreateTemplateId", skip_serializing_if = "Option::is_none")]
24 pub login_id_in_use_on_create_template_id: Option<uuid::Uuid>,
25 #[serde(rename = "loginIdInUseOnUpdateTemplateId", skip_serializing_if = "Option::is_none")]
26 pub login_id_in_use_on_update_template_id: Option<uuid::Uuid>,
27 #[serde(rename = "loginNewDeviceTemplateId", skip_serializing_if = "Option::is_none")]
28 pub login_new_device_template_id: Option<uuid::Uuid>,
29 #[serde(rename = "loginSuspiciousTemplateId", skip_serializing_if = "Option::is_none")]
30 pub login_suspicious_template_id: Option<uuid::Uuid>,
31 #[serde(rename = "messengerId", skip_serializing_if = "Option::is_none")]
32 pub messenger_id: Option<uuid::Uuid>,
33 #[serde(rename = "passwordResetSuccessTemplateId", skip_serializing_if = "Option::is_none")]
34 pub password_reset_success_template_id: Option<uuid::Uuid>,
35 #[serde(rename = "passwordUpdateTemplateId", skip_serializing_if = "Option::is_none")]
36 pub password_update_template_id: Option<uuid::Uuid>,
37 #[serde(rename = "passwordlessTemplateId", skip_serializing_if = "Option::is_none")]
38 pub passwordless_template_id: Option<uuid::Uuid>,
39 #[serde(rename = "setPasswordTemplateId", skip_serializing_if = "Option::is_none")]
40 pub set_password_template_id: Option<uuid::Uuid>,
41 #[serde(rename = "twoFactorMethodAddTemplateId", skip_serializing_if = "Option::is_none")]
42 pub two_factor_method_add_template_id: Option<uuid::Uuid>,
43 #[serde(rename = "twoFactorMethodRemoveTemplateId", skip_serializing_if = "Option::is_none")]
44 pub two_factor_method_remove_template_id: Option<uuid::Uuid>,
45 #[serde(rename = "unverified", skip_serializing_if = "Option::is_none")]
46 pub unverified: Option<Box<models::PhoneUnverifiedOptions>>,
47 #[serde(rename = "verificationCompleteTemplateId", skip_serializing_if = "Option::is_none")]
48 pub verification_complete_template_id: Option<uuid::Uuid>,
49 #[serde(rename = "verificationStrategy", skip_serializing_if = "Option::is_none")]
50 pub verification_strategy: Option<models::VerificationStrategy>,
51 #[serde(rename = "verificationTemplateId", skip_serializing_if = "Option::is_none")]
52 pub verification_template_id: Option<uuid::Uuid>,
53 #[serde(rename = "verifyPhoneNumber", skip_serializing_if = "Option::is_none")]
54 pub verify_phone_number: Option<bool>,
55}
56
57impl TenantPhoneConfiguration {
58 pub fn new() -> TenantPhoneConfiguration {
60 TenantPhoneConfiguration {
61 forgot_password_template_id: None,
62 identity_update_template_id: None,
63 implicit_phone_verification_allowed: None,
64 login_id_in_use_on_create_template_id: None,
65 login_id_in_use_on_update_template_id: None,
66 login_new_device_template_id: None,
67 login_suspicious_template_id: None,
68 messenger_id: None,
69 password_reset_success_template_id: None,
70 password_update_template_id: None,
71 passwordless_template_id: None,
72 set_password_template_id: None,
73 two_factor_method_add_template_id: None,
74 two_factor_method_remove_template_id: None,
75 unverified: None,
76 verification_complete_template_id: None,
77 verification_strategy: None,
78 verification_template_id: None,
79 verify_phone_number: None,
80 }
81 }
82}
83