clerk_rs/models/
create_email_request.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct CreateEmailRequest {
13 #[serde(rename = "from_email_name", skip_serializing_if = "Option::is_none")]
15 pub from_email_name: Option<String>,
16 #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
18 pub subject: Option<String>,
19 #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
21 pub body: Option<String>,
22 #[serde(
24 rename = "email_address_id",
25 default,
26 with = "::serde_with::rust::double_option",
27 skip_serializing_if = "Option::is_none"
28 )]
29 pub email_address_id: Option<Option<String>>,
30}
31
32impl CreateEmailRequest {
33 pub fn new() -> CreateEmailRequest {
34 CreateEmailRequest {
35 from_email_name: None,
36 subject: None,
37 body: None,
38 email_address_id: None,
39 }
40 }
41}