Trait former::exposed::EntityToDefinition
source · pub trait EntityToDefinition<Context, Formed, End> {
type Definition: FormerDefinition;
type Types: FormerDefinitionTypes;
}
Expand description
Maps a type of entity to its corresponding former definition. This trait provides a linkage between the entity and its definition, allowing the formation logic to understand what definition to apply during the formation process.
Required Associated Types§
sourcetype Definition: FormerDefinition
type Definition: FormerDefinition
The specific FormerDefinition
associated with this entity.
sourcetype Types: FormerDefinitionTypes
type Types: FormerDefinitionTypes
The specific FormerDefinitionTypes
associated with this entity.