pub struct EmailMail {
pub venture: String,
pub subject: String,
pub title: String,
pub body: String,
pub url: Option<String>,
pub lang: String,
pub dir: String,
pub unsubscribe: String,
pub unsubscribe_all: String,
}Expand description
What the email template is given. Serialized through the registry, so
it is a wire format: adding a field is fine, renaming one breaks
overrides. The module also puts the resolved theme under theme.
Fields§
§venture: StringThe venture’s name.
subject: StringThe subject, already in the recipient’s language.
title: StringThe notification’s title, its heading.
body: StringThe notification’s body.
url: Option<String>Where the notification points, if anywhere.
lang: StringThe BCP 47 tag the mail is in.
dir: Stringltr or rtl.
unsubscribe: StringStops this category (the one-click link, or the settings page).
unsubscribe_all: StringStops every notification email.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EmailMail
impl<'de> Deserialize<'de> for EmailMail
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
Auto Trait Implementations§
impl Freeze for EmailMail
impl RefUnwindSafe for EmailMail
impl Send for EmailMail
impl Sync for EmailMail
impl Unpin for EmailMail
impl UnsafeUnpin for EmailMail
impl UnwindSafe for EmailMail
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