pub struct Template { /* private fields */ }Expand description
A framework-agnostic representation of a template to be rendered.
This struct holds all the necessary information for a render operation.
It is created by the TeraWeb::render method. Web framework integration
layers (like snapfire::actix) implement their native response traits on this struct.
Trait Implementations§
Source§impl Responder for Template
impl Responder for Template
type Body = BoxBody
Source§fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse.Auto Trait Implementations§
impl Freeze for Template
impl !RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl !UnwindSafe for Template
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