pub struct VersionedEventWithMetadata<E, M> {
pub sequence: EventNumber,
pub event: E,
pub metadata: M,
}Expand description
A structured tuple combining an event number and an event.
Fields§
§sequence: EventNumberThe event number.
event: EThe event.
metadata: MThe event metadata.
Trait Implementations§
Source§impl<E: Clone, M: Clone> Clone for VersionedEventWithMetadata<E, M>
impl<E: Clone, M: Clone> Clone for VersionedEventWithMetadata<E, M>
Source§fn clone(&self) -> VersionedEventWithMetadata<E, M>
fn clone(&self) -> VersionedEventWithMetadata<E, M>
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 moreSource§impl<E: PartialEq, M: PartialEq> PartialEq for VersionedEventWithMetadata<E, M>
impl<E: PartialEq, M: PartialEq> PartialEq for VersionedEventWithMetadata<E, M>
Source§fn eq(&self, other: &VersionedEventWithMetadata<E, M>) -> bool
fn eq(&self, other: &VersionedEventWithMetadata<E, M>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: Copy, M: Copy> Copy for VersionedEventWithMetadata<E, M>
impl<E: Eq, M: Eq> Eq for VersionedEventWithMetadata<E, M>
impl<E, M> StructuralPartialEq for VersionedEventWithMetadata<E, M>
Auto Trait Implementations§
impl<E, M> Freeze for VersionedEventWithMetadata<E, M>
impl<E, M> RefUnwindSafe for VersionedEventWithMetadata<E, M>where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<E, M> Send for VersionedEventWithMetadata<E, M>
impl<E, M> Sync for VersionedEventWithMetadata<E, M>
impl<E, M> Unpin for VersionedEventWithMetadata<E, M>
impl<E, M> UnwindSafe for VersionedEventWithMetadata<E, M>where
E: UnwindSafe,
M: 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