clerk_sdk_rust_community/models/
update_instance_request.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct UpdateInstanceRequest {
16    /// Toggles test mode for this instance, allowing the use of test email addresses and phone numbers. Defaults to true for development instances.
17    #[serde(rename = "test_mode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub test_mode: Option<Option<bool>>,
19    /// Whether the instance should be using the HIBP service to check passwords for breaches
20    #[serde(rename = "hibp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub hibp: Option<Option<bool>>,
22    /// 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.
23    #[serde(rename = "enhanced_email_deliverability", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub enhanced_email_deliverability: Option<Option<bool>>,
25    #[serde(rename = "support_email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub support_email: Option<Option<String>>,
27    #[serde(rename = "clerk_js_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub clerk_js_version: Option<Option<String>>,
29    #[serde(rename = "experimental_allowed_origins", skip_serializing_if = "Option::is_none")]
30    pub experimental_allowed_origins: Option<Vec<String>>,
31    /// Whether the instance should operate in cookieless development mode (i.e. without third-party cookies). Deprecated: Please use `url_based_session_syncing` instead.
32    #[serde(rename = "cookieless_dev", skip_serializing_if = "Option::is_none")]
33    pub cookieless_dev: Option<bool>,
34    /// Whether the instance should use URL-based session syncing in development mode (i.e. without third-party cookies).
35    #[serde(rename = "url_based_session_syncing", skip_serializing_if = "Option::is_none")]
36    pub url_based_session_syncing: Option<bool>,
37}
38
39impl UpdateInstanceRequest {
40    pub fn new() -> UpdateInstanceRequest {
41        UpdateInstanceRequest {
42            test_mode: None,
43            hibp: None,
44            enhanced_email_deliverability: None,
45            support_email: None,
46            clerk_js_version: None,
47            experimental_allowed_origins: None,
48            cookieless_dev: None,
49            url_based_session_syncing: None,
50        }
51    }
52}
53
54