pub trait Component:
Component
+ Serialize
+ DeserializeOwned
+ Default
+ Clone {
const REMOVABLE: bool = true;
// Provided method
fn fields(&mut self) -> Vec<Field<'_>> { ... }
}Expand description
Editor-visible component contract: identity, serde persistence and editable fields.
Built-ins are registered in both register_all and crate::registry::Registry.
Script libraries may access built-ins but must not register custom unloadable storage.
Provided Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".