clerk_rs/models/
update_instance_auth_config_request.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct UpdateInstanceAuthConfigRequest {
13 #[serde(
15 rename = "restricted_to_allowlist",
16 default,
17 with = "::serde_with::rust::double_option",
18 skip_serializing_if = "Option::is_none"
19 )]
20 pub restricted_to_allowlist: Option<Option<bool>>,
21 #[serde(
23 rename = "from_email_address",
24 default,
25 with = "::serde_with::rust::double_option",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub from_email_address: Option<Option<String>>,
29 #[serde(
31 rename = "progressive_sign_up",
32 default,
33 with = "::serde_with::rust::double_option",
34 skip_serializing_if = "Option::is_none"
35 )]
36 pub progressive_sign_up: Option<Option<bool>>,
37 #[serde(
39 rename = "session_token_template",
40 default,
41 with = "::serde_with::rust::double_option",
42 skip_serializing_if = "Option::is_none"
43 )]
44 pub session_token_template: Option<Option<String>>,
45 #[serde(
47 rename = "enhanced_email_deliverability",
48 default,
49 with = "::serde_with::rust::double_option",
50 skip_serializing_if = "Option::is_none"
51 )]
52 pub enhanced_email_deliverability: Option<Option<bool>>,
53 #[serde(
55 rename = "test_mode",
56 default,
57 with = "::serde_with::rust::double_option",
58 skip_serializing_if = "Option::is_none"
59 )]
60 pub test_mode: Option<Option<bool>>,
61}
62
63impl UpdateInstanceAuthConfigRequest {
64 pub fn new() -> UpdateInstanceAuthConfigRequest {
65 UpdateInstanceAuthConfigRequest {
66 restricted_to_allowlist: None,
67 from_email_address: None,
68 progressive_sign_up: None,
69 session_token_template: None,
70 enhanced_email_deliverability: None,
71 test_mode: None,
72 }
73 }
74}