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

Returns Ok if a Response could be generated successfully. Otherwise, returns an Err with a failing Status. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts self into a collection.
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get the TypeId of this object.