1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Clerk Backend API
*
* The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
*
* The version of the OpenAPI document: v1
* Contact: support@clerk.dev
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PreviewTemplateRequest {
/// The email subject. Applicable only to email templates.
#[serde(rename = "subject", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub subject: Option<Option<String>>,
/// The template body before variable interpolation
#[serde(rename = "body", skip_serializing_if = "Option::is_none")]
pub body: Option<String>,
/// The local part of the From email address that will be used for emails. For example, in the address 'hello@example.com', the local part is 'hello'. Applicable only to email templates.
#[serde(rename = "from_email_name", skip_serializing_if = "Option::is_none")]
pub from_email_name: Option<String>,
}
impl PreviewTemplateRequest {
pub fn new() -> PreviewTemplateRequest {
PreviewTemplateRequest {
subject: None,
body: None,
from_email_name: None,
}
}
}