pub trait ComponentApi:
Send
+ Sync
+ 'static {
// Required method
fn name(&self) -> &'static str;
// Provided method
fn validate_properties(
&self,
_properties: &Map<String, Value>,
) -> Result<(), Vec<String>> { ... }
}Expand description
The framework-agnostic definition of a component: its name and schema.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".