clerk_rs/models/
update_email_address_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.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct UpdateEmailAddressRequest {
13	/// The email address will be marked as verified.
14	#[serde(
15		rename = "verified",
16		default,
17		with = "::serde_with::rust::double_option",
18		skip_serializing_if = "Option::is_none"
19	)]
20	pub verified: Option<Option<bool>>,
21	/// Set this email address as the primary email address for the user.
22	#[serde(
23		rename = "primary",
24		default,
25		with = "::serde_with::rust::double_option",
26		skip_serializing_if = "Option::is_none"
27	)]
28	pub primary: Option<Option<bool>>,
29}
30
31impl UpdateEmailAddressRequest {
32	pub fn new() -> UpdateEmailAddressRequest {
33		UpdateEmailAddressRequest {
34			verified: None,
35			primary: None,
36		}
37	}
38}