pub trait ViewEngine:
Send
+ Sync
+ 'static {
// Required method
fn render(
&self,
view: String,
context: Value,
) -> BoxFuture<'static, Result<String>>;
}Expand description
Rendering backend for Nest-style MVC view responses.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".