1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Clerk Backend API
*
* The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
*
* The version of the OpenAPI document: v1
* Contact: support@clerk.dev
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UpdateInstanceAuthConfigRequest {
/// Whether sign up is restricted to email addresses, phone numbers and usernames that are on the allowlist.
#[serde(rename = "restricted_to_allowlist", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub restricted_to_allowlist: Option<Option<bool>>,
/// The local part of the email address from which authentication-related emails (e.g. OTP code, magic links) will be sent. Only alphanumeric values are allowed. Note that this value should contain only the local part of the address (e.g. `foo` for `foo@example.com`).
#[serde(rename = "from_email_address", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub from_email_address: Option<Option<String>>,
/// Enable the Progressive Sign Up algorithm. Refer to the [docs](https://clerk.com/docs/upgrade-guides/progressive-sign-up) for more info.
#[serde(rename = "progressive_sign_up", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub progressive_sign_up: Option<Option<bool>>,
/// The name of the JWT Template used to augment your session tokens. To disable this, pass an empty string.
#[serde(rename = "session_token_template", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub session_token_template: Option<Option<String>>,
/// The \"enhanced_email_deliverability\" feature will send emails from \"verifications@clerk.dev\" instead of your domain. This can be helpful if you do not have a high domain reputation.
#[serde(rename = "enhanced_email_deliverability", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub enhanced_email_deliverability: Option<Option<bool>>,
/// Toggles test mode for this instance, allowing the use of test email addresses and phone numbers. Defaults to true for development instances.
#[serde(rename = "test_mode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub test_mode: Option<Option<bool>>,
}
impl UpdateInstanceAuthConfigRequest {
pub fn new() -> UpdateInstanceAuthConfigRequest {
UpdateInstanceAuthConfigRequest {
restricted_to_allowlist: None,
from_email_address: None,
progressive_sign_up: None,
session_token_template: None,
enhanced_email_deliverability: None,
test_mode: None,
}
}
}