pub struct NotificationTemplate {
pub subject: String,
pub body_template: String,
}Expand description
A message template with {{key}} placeholder syntax.
Fields§
§subject: StringShort subject line.
body_template: StringBody text; may contain {{key}} placeholders.
Implementations§
Trait Implementations§
Source§impl Clone for NotificationTemplate
impl Clone for NotificationTemplate
Source§fn clone(&self) -> NotificationTemplate
fn clone(&self) -> NotificationTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NotificationTemplate
impl RefUnwindSafe for NotificationTemplate
impl Send for NotificationTemplate
impl Sync for NotificationTemplate
impl Unpin for NotificationTemplate
impl UnsafeUnpin for NotificationTemplate
impl UnwindSafe for NotificationTemplate
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