pub trait RenderContext: Serialize {
const TEMPLATE_NAME: &'static str;
const MIME_TYPE: &'static str;
// Required method
fn render(&self, renderer: &Renderer) -> Result<String, Error>;
}
Required Associated Constants§
Sourceconst TEMPLATE_NAME: &'static str
const TEMPLATE_NAME: &'static str
The name of the template to render
Required Methods§
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.