clerk_rs/models/
update_instance_request.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct UpdateInstanceRequest {
13 #[serde(
15 rename = "test_mode",
16 default,
17 with = "::serde_with::rust::double_option",
18 skip_serializing_if = "Option::is_none"
19 )]
20 pub test_mode: Option<Option<bool>>,
21 #[serde(
23 rename = "hibp",
24 default,
25 with = "::serde_with::rust::double_option",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub hibp: Option<Option<bool>>,
29 #[serde(
31 rename = "enhanced_email_deliverability",
32 default,
33 with = "::serde_with::rust::double_option",
34 skip_serializing_if = "Option::is_none"
35 )]
36 pub enhanced_email_deliverability: Option<Option<bool>>,
37 #[serde(
38 rename = "support_email",
39 default,
40 with = "::serde_with::rust::double_option",
41 skip_serializing_if = "Option::is_none"
42 )]
43 pub support_email: Option<Option<String>>,
44 #[serde(
45 rename = "clerk_js_version",
46 default,
47 with = "::serde_with::rust::double_option",
48 skip_serializing_if = "Option::is_none"
49 )]
50 pub clerk_js_version: Option<Option<String>>,
51 #[serde(
52 rename = "development_origin",
53 default,
54 with = "::serde_with::rust::double_option",
55 skip_serializing_if = "Option::is_none"
56 )]
57 pub development_origin: Option<Option<String>>,
58 #[serde(rename = "allowed_origins", skip_serializing_if = "Option::is_none")]
60 pub allowed_origins: Option<Vec<String>>,
61 #[serde(rename = "cookieless_dev", skip_serializing_if = "Option::is_none")]
63 pub cookieless_dev: Option<bool>,
64 #[serde(rename = "url_based_session_syncing", skip_serializing_if = "Option::is_none")]
66 pub url_based_session_syncing: Option<bool>,
67}
68
69impl UpdateInstanceRequest {
70 pub fn new() -> UpdateInstanceRequest {
71 UpdateInstanceRequest {
72 test_mode: None,
73 hibp: None,
74 enhanced_email_deliverability: None,
75 support_email: None,
76 clerk_js_version: None,
77 development_origin: None,
78 allowed_origins: None,
79 cookieless_dev: None,
80 url_based_session_syncing: None,
81 }
82 }
83}