[][src]Struct mail_template::serde_impl::StandardLazyBodyTemplate

pub struct StandardLazyBodyTemplate {
    pub path: PathBuf,
    pub embeddings: HashMap<String, Resource>,
    pub media_type: Option<MediaType>,
}

Common implementation for a type for TemplateEngine::LazyBodyTemplate.

This impl. gives bodies a field embeddings which is a mapping of embedding names to embeddings (using deserialize_embeddings) a path field which allows specifying the template file (e.g. "body.html") and can be relative to the base dir.

Fields

path: PathBufembeddings: HashMap<String, Resource>media_type: Option<MediaType>

Trait Implementations

impl PathRebaseable for StandardLazyBodyTemplate[src]

impl Debug for StandardLazyBodyTemplate[src]

impl Serialize for StandardLazyBodyTemplate[src]

impl<'de> Deserialize<'de> for StandardLazyBodyTemplate[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> HeaderTryFrom for T[src]

impl<F, T> HeaderTryInto for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T> Erased for T