pub struct BodyTemplate<TE: TemplateEngine> {
pub template_id: TE::Id,
pub media_type: MediaType,
pub inline_embeddings: HashMap<String, Resource>,
}Expand description
Represents one of potentially many alternate bodies in a template.
Fields§
§template_id: TE::Id§media_type: MediaType§inline_embeddings: HashMap<String, Resource>Implementations§
Source§impl<TE> BodyTemplate<TE>where
TE: TemplateEngine,
impl<TE> BodyTemplate<TE>where
TE: TemplateEngine,
pub fn template_id(&self) -> &TE::Id
pub fn media_type(&self) -> &MediaType
pub fn inline_embeddings(&self) -> &HashMap<String, Resource>
Trait Implementations§
Auto Trait Implementations§
impl<TE> Freeze for BodyTemplate<TE>
impl<TE> RefUnwindSafe for BodyTemplate<TE>
impl<TE> Send for BodyTemplate<TE>
impl<TE> Sync for BodyTemplate<TE>
impl<TE> Unpin for BodyTemplate<TE>
impl<TE> UnwindSafe for BodyTemplate<TE>
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