Function dendrite::axon_utils::create_aggregate_definition[][src]

pub fn create_aggregate_definition<P: VecU8Message + Send + Sync + Clone>(
    projection_name: String,
    empty_projection: Box<fn() -> P>,
    command_handler_registry: TheHandlerRegistry<Arc<Mutex<AggregateContext<P>>>, SerializedObject>,
    sourcing_handler_registry: TheHandlerRegistry<P, P>
) -> AggregateDefinition<P>

Creates a new aggregate definition as needed by function command_worker.