pub struct PersistedEvent<ID: EventId, E: Event> { /* private fields */ }Expand description
Wrapper for a persisted event.
It contains an ID assigned by the event store and the event itself.
Implementations§
Source§impl<ID: EventId, E: Event> PersistedEvent<ID, E>
impl<ID: EventId, E: Event> PersistedEvent<ID, E>
Trait Implementations§
Source§impl<ID: Clone + EventId, E: Clone + Event> Clone for PersistedEvent<ID, E>
impl<ID: Clone + EventId, E: Clone + Event> Clone for PersistedEvent<ID, E>
Source§fn clone(&self) -> PersistedEvent<ID, E>
fn clone(&self) -> PersistedEvent<ID, E>
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<ID: EventId, E: Event> From<PersistedEvent<ID, E>> for StreamItem<ID, E>
impl<ID: EventId, E: Event> From<PersistedEvent<ID, E>> for StreamItem<ID, E>
Source§fn from(event: PersistedEvent<ID, E>) -> Self
fn from(event: PersistedEvent<ID, E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ID, E> Freeze for PersistedEvent<ID, E>
impl<ID, E> RefUnwindSafe for PersistedEvent<ID, E>where
ID: RefUnwindSafe,
E: RefUnwindSafe,
impl<ID, E> Send for PersistedEvent<ID, E>where
E: Send,
impl<ID, E> Sync for PersistedEvent<ID, E>where
E: Sync,
impl<ID, E> Unpin for PersistedEvent<ID, E>
impl<ID, E> UnwindSafe for PersistedEvent<ID, E>where
ID: UnwindSafe,
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