pub struct CqrsBundle<TCommand = AnyValue, TEvent = AnyValue> {
pub command: Node<CqrsCommand<TCommand>>,
pub runtime: Node<CqrsRuntimeFact<TCommand, TEvent>>,
pub events: Node<CqrsEvent<TEvent>>,
pub status: Node<CqrsStatus>,
pub errors: Node<CqrsError<TCommand>>,
pub audit: Node<CqrsAuditRecord>,
pub cursor: Node<CqrsCursor>,
/* private fields */
}Expand description
CqrsBundle data container.
Fields§
§command: Node<CqrsCommand<TCommand>>command field for command.
runtime: Node<CqrsRuntimeFact<TCommand, TEvent>>runtime field for runtime.
events: Node<CqrsEvent<TEvent>>events field for events.
status: Node<CqrsStatus>status field for status.
errors: Node<CqrsError<TCommand>>errors field for errors.
audit: Node<CqrsAuditRecord>audit field for audit.
cursor: Node<CqrsCursor>cursor field for cursor.
Implementations§
Source§impl<TCommand: Clone + 'static, TEvent: Clone + 'static> CqrsBundle<TCommand, TEvent>
impl<TCommand: Clone + 'static, TEvent: Clone + 'static> CqrsBundle<TCommand, TEvent>
Sourcepub fn dispatch(&self, command: CqrsCommand<TCommand>) -> CqrsCommand<TCommand>
pub fn dispatch(&self, command: CqrsCommand<TCommand>) -> CqrsCommand<TCommand>
Updates or reads dispatch.
Trait Implementations§
Source§impl<TCommand: Clone, TEvent: Clone> Clone for CqrsBundle<TCommand, TEvent>
impl<TCommand: Clone, TEvent: Clone> Clone for CqrsBundle<TCommand, TEvent>
Source§fn clone(&self) -> CqrsBundle<TCommand, TEvent>
fn clone(&self) -> CqrsBundle<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 CqrsBundle<TCommand, TEvent>
impl<TCommand = Rc<dyn Any>, TEvent = Rc<dyn Any>> !RefUnwindSafe for CqrsBundle<TCommand, TEvent>
impl<TCommand = Rc<dyn Any>, TEvent = Rc<dyn Any>> !Send for CqrsBundle<TCommand, TEvent>
impl<TCommand = Rc<dyn Any>, TEvent = Rc<dyn Any>> !Sync for CqrsBundle<TCommand, TEvent>
impl<TCommand, TEvent> Unpin for CqrsBundle<TCommand, TEvent>
impl<TCommand, TEvent> UnsafeUnpin for CqrsBundle<TCommand, TEvent>
impl<TCommand = Rc<dyn Any>, TEvent = Rc<dyn Any>> !UnwindSafe for CqrsBundle<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