Trait RenderRequest

Source
pub trait RenderRequest: Request {
    // Required methods
    fn template(&self) -> &str;
    fn is_client_only(&self) -> bool;
}
Expand description

A trait that describes a request for server-side rendering.

Required Methods§

Source

fn template(&self) -> &str

Returns the template of the html file.

Source

fn is_client_only(&self) -> bool

Returns true if this request should be rendered at the client side.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§