pub trait Component:
Template
+ DeserializeOwned
+ Send
+ Sync
+ 'static {
const NAME: &'static str;
}Expand description
A renderable component.
Components are defined as typed Rust structs with an Askama template attached.
The struct must be deserializable from JSON (DeserializeOwned) so the runtime
can instantiate it from dynamic props when rendering by name.
Each component has a stable string identifier (NAME) used for registry lookup.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".