Expand description
§Module :: component_model_meta
A flexible implementation of the Builder pattern supporting nested builders and collection-specific subcomponent_models. Implementation of its derive macro. Should not be used independently, instead use module::component_model
which relies on the module.
Not intended to be used without runtime. This module and runtime is aggregate in module::component_model
is here.
§To add to your project
cargo add component_model_meta
Derive Macros§
- Assign
- Derives the
Assign
trait for struct fields, allowing each field to be set with a value that can be converted into the field’s type. - Component
From - Macro to implement
From
for each component (field) of a structure. This macro simplifies the creation ofFrom
trait implementations for struct fields, enabling easy conversion from a struct reference to its field types. - Components
Assign - Derives the
ComponentsAssign
trait for a struct, enablingcomponents_assign
which set all fields at once. - From
Components - A procedural macro to automatically derive the
From<T>
trait implementation for a struct, enabling instances of one type to be converted from instances of another type.