pub struct EventEnvelope<E> {
pub persistence_id: PersistenceId,
pub seq_nr: u64,
pub timestamp: DateTime<Utc>,
pub event: E,
pub offset: Offset,
pub tags: Vec<Tag>,
}
Expand description
An envelope wraps a commit log event associated with a specific entity. Tags are not presently considered useful at the edge. A remote consumer would be interested in all events from the edge in most cases, and the edge itself decides what to publish (producer defined filter).
Fields§
§persistence_id: PersistenceId
§seq_nr: u64
§timestamp: DateTime<Utc>
§event: E
§offset: Offset
Trait Implementations§
source§impl<E: Clone> Clone for EventEnvelope<E>
impl<E: Clone> Clone for EventEnvelope<E>
source§fn clone(&self) -> EventEnvelope<E>
fn clone(&self) -> EventEnvelope<E>
Returns a copy 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 moresource§impl<E: Debug> Debug for EventEnvelope<E>
impl<E: Debug> Debug for EventEnvelope<E>
source§impl<E: PartialEq> PartialEq for EventEnvelope<E>
impl<E: PartialEq> PartialEq for EventEnvelope<E>
source§fn eq(&self, other: &EventEnvelope<E>) -> bool
fn eq(&self, other: &EventEnvelope<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E> WithOffset for EventEnvelope<E>
impl<E> WithOffset for EventEnvelope<E>
source§impl<E> WithPersistenceId for EventEnvelope<E>
impl<E> WithPersistenceId for EventEnvelope<E>
fn persistence_id(&self) -> &PersistenceId
source§impl<E> WithSource for EventEnvelope<E>
impl<E> WithSource for EventEnvelope<E>
source§impl<E> WithTags for EventEnvelope<E>
impl<E> WithTags for EventEnvelope<E>
source§impl<E> WithTimestamp for EventEnvelope<E>
impl<E> WithTimestamp for EventEnvelope<E>
impl<E> StructuralPartialEq for EventEnvelope<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for EventEnvelope<E>where E: RefUnwindSafe,
impl<E> Send for EventEnvelope<E>where E: Send,
impl<E> Sync for EventEnvelope<E>where E: Sync,
impl<E> Unpin for EventEnvelope<E>where E: Unpin,
impl<E> UnwindSafe for EventEnvelope<E>where E: UnwindSafe,
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