pub struct CqrsCommandHandlerDefinition<TCommand, TEvent> {
pub command_type: String,
pub handle: CqrsCommandHandler<TCommand, TEvent>,
}Expand description
CqrsCommandHandlerDefinition data container.
Fields§
§command_type: Stringcommand_type field for command type.
handle: CqrsCommandHandler<TCommand, TEvent>handle field for handle.
Trait Implementations§
Source§impl<TCommand: Clone, TEvent: Clone> Clone for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand: Clone, TEvent: Clone> Clone for CqrsCommandHandlerDefinition<TCommand, TEvent>
Source§fn clone(&self) -> CqrsCommandHandlerDefinition<TCommand, TEvent>
fn clone(&self) -> CqrsCommandHandlerDefinition<TCommand, TEvent>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<TCommand, TEvent> Freeze for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand, TEvent> !RefUnwindSafe for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand, TEvent> !Send for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand, TEvent> !Sync for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand, TEvent> Unpin for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand, TEvent> UnsafeUnpin for CqrsCommandHandlerDefinition<TCommand, TEvent>
impl<TCommand, TEvent> !UnwindSafe for CqrsCommandHandlerDefinition<TCommand, TEvent>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more