clerk-sdk-rust-community 1.0.4

The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
Documentation
/*
 * 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 CreateEmailRequest {
    /// The email name portion of the sending email address. <br/>e.g.: `from_email_name=info` will send from info@example.com
    #[serde(rename = "from_email_name", skip_serializing_if = "Option::is_none")]
    pub from_email_name: Option<String>,
    /// The subject of the email.
    #[serde(rename = "subject", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub subject: Option<Option<String>>,
    /// The body of the email.
    #[serde(rename = "body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub body: Option<Option<String>>,
    /// The ID of the email address to send to.
    #[serde(rename = "email_address_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub email_address_id: Option<Option<String>>,
    /// The slug of the template to use for sending this email
    #[serde(rename = "template_slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub template_slug: Option<Option<String>>,
}

impl CreateEmailRequest {
    pub fn new() -> CreateEmailRequest {
        CreateEmailRequest {
            from_email_name: None,
            subject: None,
            body: None,
            email_address_id: None,
            template_slug: None,
        }
    }
}