pub struct EventEnvelope {
pub session: SessionId,
pub step: u32,
pub event: DomainEvent,
}Expand description
Standard envelope (docs/ddd/domain-events.md): every event is correlated by
SessionId and ordered by a logical step index.
Fields§
§session: SessionId§step: u32§event: DomainEventImplementations§
Source§impl EventEnvelope
impl EventEnvelope
pub fn new(session: SessionId, step: u32, event: DomainEvent) -> Self
Trait Implementations§
Source§impl Clone for EventEnvelope
impl Clone for EventEnvelope
Source§fn clone(&self) -> EventEnvelope
fn clone(&self) -> EventEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventEnvelope
Source§impl Debug for EventEnvelope
impl Debug for EventEnvelope
impl Eq for EventEnvelope
Source§impl PartialEq for EventEnvelope
impl PartialEq for EventEnvelope
impl StructuralPartialEq for EventEnvelope
Auto Trait Implementations§
impl Freeze for EventEnvelope
impl RefUnwindSafe for EventEnvelope
impl Send for EventEnvelope
impl Sync for EventEnvelope
impl Unpin for EventEnvelope
impl UnsafeUnpin for EventEnvelope
impl UnwindSafe for EventEnvelope
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