Skip to main content

cqrs_command_handler

Function cqrs_command_handler 

Source
pub fn cqrs_command_handler<TCommand, TEvent>(
    command_type: impl Into<String>,
    handle: impl Fn(&CqrsCommand<TCommand>) -> Vec<CqrsEventDraft<TEvent>> + 'static,
) -> CqrsCommandHandlerDefinition<TCommand, TEvent>
Expand description

Creates or computes cqrs_command_handler.