pub struct EmailTemplate {Show 13 fields
pub default_from_name: Option<String>,
pub default_html_template: Option<String>,
pub default_subject: Option<String>,
pub default_text_template: Option<String>,
pub from_email: Option<String>,
pub id: Option<Uuid>,
pub insert_instant: Option<i64>,
pub last_update_instant: Option<i64>,
pub localized_from_names: Option<Value>,
pub localized_html_templates: Option<Value>,
pub localized_subjects: Option<Value>,
pub localized_text_templates: Option<Value>,
pub name: Option<String>,
}
Expand description
EmailTemplate : Stores an email template used to send emails to users.
Fields§
§default_from_name: Option<String>
§default_html_template: Option<String>
§default_subject: Option<String>
§default_text_template: Option<String>
§from_email: Option<String>
§id: Option<Uuid>
§insert_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
last_update_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
localized_from_names: Option<Value>
Models a set of localized Strings that can be stored as JSON.
localized_html_templates: Option<Value>
Models a set of localized Strings that can be stored as JSON.
localized_subjects: Option<Value>
Models a set of localized Strings that can be stored as JSON.
localized_text_templates: Option<Value>
Models a set of localized Strings that can be stored as JSON.
name: Option<String>
Implementations§
Source§impl EmailTemplate
impl EmailTemplate
Sourcepub fn new() -> EmailTemplate
pub fn new() -> EmailTemplate
Stores an email template used to send emails to users.
Trait Implementations§
Source§impl Clone for EmailTemplate
impl Clone for EmailTemplate
Source§fn clone(&self) -> EmailTemplate
fn clone(&self) -> EmailTemplate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EmailTemplate
impl Debug for EmailTemplate
Source§impl Default for EmailTemplate
impl Default for EmailTemplate
Source§fn default() -> EmailTemplate
fn default() -> EmailTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmailTemplate
impl<'de> Deserialize<'de> for EmailTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EmailTemplate
impl PartialEq for EmailTemplate
Source§impl Serialize for EmailTemplate
impl Serialize for EmailTemplate
impl StructuralPartialEq for EmailTemplate
Auto Trait Implementations§
impl Freeze for EmailTemplate
impl RefUnwindSafe for EmailTemplate
impl Send for EmailTemplate
impl Sync for EmailTemplate
impl Unpin for EmailTemplate
impl UnwindSafe for EmailTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more