clerk_rs/models/
update_instance_auth_config_200_response.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.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct UpdateInstanceAuthConfig200Response {
13	/// String representing the object's type. Objects of the same type share the same value.
14	#[serde(rename = "object", skip_serializing_if = "Option::is_none")]
15	pub object: Option<Object>,
16	#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17	pub id: Option<String>,
18	#[serde(rename = "restricted_to_allowlist", skip_serializing_if = "Option::is_none")]
19	pub restricted_to_allowlist: Option<bool>,
20	#[serde(rename = "from_email_address", skip_serializing_if = "Option::is_none")]
21	pub from_email_address: Option<String>,
22	#[serde(rename = "progressive_sign_up", skip_serializing_if = "Option::is_none")]
23	pub progressive_sign_up: Option<bool>,
24	#[serde(rename = "enhanced_email_deliverability", skip_serializing_if = "Option::is_none")]
25	pub enhanced_email_deliverability: Option<bool>,
26}
27
28impl UpdateInstanceAuthConfig200Response {
29	pub fn new() -> UpdateInstanceAuthConfig200Response {
30		UpdateInstanceAuthConfig200Response {
31			object: None,
32			id: None,
33			restricted_to_allowlist: None,
34			from_email_address: None,
35			progressive_sign_up: None,
36			enhanced_email_deliverability: None,
37		}
38	}
39}
40
41/// String representing the object's type. Objects of the same type share the same value.
42#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
43pub enum Object {
44	#[serde(rename = "instance_settings")]
45	InstanceSettings,
46}
47
48impl Default for Object {
49	fn default() -> Object {
50		Self::InstanceSettings
51	}
52}