fusionauth_rust_client/models/
email_template.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.57.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EmailTemplate : Stores an email template used to send emails to users.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EmailTemplate {
17    #[serde(rename = "defaultFromName", skip_serializing_if = "Option::is_none")]
18    pub default_from_name: Option<String>,
19    #[serde(rename = "defaultHtmlTemplate", skip_serializing_if = "Option::is_none")]
20    pub default_html_template: Option<String>,
21    #[serde(rename = "defaultSubject", skip_serializing_if = "Option::is_none")]
22    pub default_subject: Option<String>,
23    #[serde(rename = "defaultTextTemplate", skip_serializing_if = "Option::is_none")]
24    pub default_text_template: Option<String>,
25    #[serde(rename = "fromEmail", skip_serializing_if = "Option::is_none")]
26    pub from_email: Option<String>,
27    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
28    pub id: Option<uuid::Uuid>,
29    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
30    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
31    pub insert_instant: Option<i64>,
32    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
33    #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
34    pub last_update_instant: Option<i64>,
35    /// Models a set of localized Strings that can be stored as JSON.
36    #[serde(rename = "localizedFromNames", skip_serializing_if = "Option::is_none")]
37    pub localized_from_names: Option<serde_json::Value>,
38    /// Models a set of localized Strings that can be stored as JSON.
39    #[serde(rename = "localizedHtmlTemplates", skip_serializing_if = "Option::is_none")]
40    pub localized_html_templates: Option<serde_json::Value>,
41    /// Models a set of localized Strings that can be stored as JSON.
42    #[serde(rename = "localizedSubjects", skip_serializing_if = "Option::is_none")]
43    pub localized_subjects: Option<serde_json::Value>,
44    /// Models a set of localized Strings that can be stored as JSON.
45    #[serde(rename = "localizedTextTemplates", skip_serializing_if = "Option::is_none")]
46    pub localized_text_templates: Option<serde_json::Value>,
47    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
48    pub name: Option<String>,
49}
50
51impl EmailTemplate {
52    /// Stores an email template used to send emails to users.
53    pub fn new() -> EmailTemplate {
54        EmailTemplate {
55            default_from_name: None,
56            default_html_template: None,
57            default_subject: None,
58            default_text_template: None,
59            from_email: None,
60            id: None,
61            insert_instant: None,
62            last_update_instant: None,
63            localized_from_names: None,
64            localized_html_templates: None,
65            localized_subjects: None,
66            localized_text_templates: None,
67            name: None,
68        }
69    }
70}
71