pub(crate) struct HelloTemplate<'a> {
    pub(crate) name: &'a str,
}

Fields

name: &'a str

Trait Implementations

Formats the value using the given formatter. Read more

Renders the template to the given writer buffer

The template’s extension, if provided

Provides a conservative estimate of the expanded length of the rendered template

The MIME type (Content-Type) of the data that gets rendered by this Template

Helper method which allocates a new String and renders into it

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

Helper method which allocates a new String and renders into it

Renders the template to the given writer buffer

Helper function to inspect the template’s extension

Provides a conservative estimate of the expanded length of the rendered template

The MIME type (Content-Type) of the data that gets rendered by this Template

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

Converts the given value to a String. Read more

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.