[−][src]Function dendrite::axon_utils::create_aggregate_definition
pub fn create_aggregate_definition<P: VecU8Message + Send + Clone>(
projection_name: String,
empty_projection: Box<dyn Fn() -> P + Send + Sync>,
aggregate_id_extractor_registry: TheHandlerRegistry<(), String>,
command_handler_registry: TheHandlerRegistry<P, EmitApplicableEventsAndResponse<P>>,
sourcing_handler_registry: TheHandlerRegistry<P, P>
) -> AggregateDefinition<P>
Creates a new aggregate definition as needed by function command_worker
.