pub struct HandlebarsResponse {
pub html: String,
pub client_etag: EtagIfNoneMatch,
pub etag: Option<EntityTag>,
pub minify: bool,
}
Fields
html: String
The HTML code.
client_etag: EtagIfNoneMatch
The Etag from HTTP client (Etag-If-None-Match).
etag: Option<EntityTag>
The Etag computed from the HTML code or provided by a specific one.
minify: bool
If you don’t want minify the rendered HTML, set minify
to false.
Trait Implementations
sourceimpl<'a> Responder<'a> for HandlebarsResponse
impl<'a> Responder<'a> for HandlebarsResponse
sourcefn respond_to(self, _: &Request<'_>) -> Result<'a>
fn respond_to(self, _: &Request<'_>) -> Result<'a>
Returns
Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read moreAuto Trait Implementations
impl RefUnwindSafe for HandlebarsResponse
impl Send for HandlebarsResponse
impl Sync for HandlebarsResponse
impl Unpin for HandlebarsResponse
impl UnwindSafe for HandlebarsResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.