[−][src]Struct mail_template::Template
A Mail template.
Methods
impl<TE> Template<TE> where
TE: TemplateEngine,
[src]
TE: TemplateEngine,
pub fn inline_embeddings(&self) -> &HashMap<String, Resource>
[src]
pub fn attachments(&self) -> &[Resource]
[src]
pub fn engine(&self) -> &TE
[src]
pub fn bodies(&self) -> &[BodyTemplate<TE>]
[src]
pub fn subject_template_id(&self) -> &TE::Id
[src]
Trait Implementations
impl<TE, D> TemplateExt<TE, D> for Template<TE> where
TE: TemplateEngine + TemplateEngineCanHandleData<D>,
[src]
TE: TemplateEngine + TemplateEngineCanHandleData<D>,
fn render_to_mail_parts<'r>(
&self,
data: LoadedTemplateData<'r, D>,
ctx: &impl Context
) -> Result<(MailParts, Header<Subject>), Error>
[src]
&self,
data: LoadedTemplateData<'r, D>,
ctx: &impl Context
) -> Result<(MailParts, Header<Subject>), Error>
fn render<'r>(
&self,
data: LoadedTemplateData<'r, D>,
ctx: &impl Context
) -> Result<Mail, Error>
[src]
&self,
data: LoadedTemplateData<'r, D>,
ctx: &impl Context
) -> Result<Mail, Error>
impl<TE: Debug + TemplateEngine> Debug for Template<TE>
[src]
Auto Trait Implementations
impl<TE> Send for Template<TE> where
TE: Send,
<TE as TemplateEngine>::Id: Send,
TE: Send,
<TE as TemplateEngine>::Id: Send,
impl<TE> Sync for Template<TE> where
TE: Sync,
<TE as TemplateEngine>::Id: Sync,
TE: Sync,
<TE as TemplateEngine>::Id: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> HeaderTryFrom for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,