pub struct StoredEvent {
pub persistence_id: PersistenceId,
pub sequence_nr: SequenceNr,
pub adapter_manifest: String,
pub writer_uuid: String,
pub timestamp_ms: i64,
pub metadata: Option<SerializedPayload>,
pub payload: SerializedPayload,
pub tags: Vec<Tag>,
}Expand description
One serialized event as stored by a journal backend.
Fields§
§persistence_id: PersistenceIdStable identity of the persistent entity that owns the event.
sequence_nr: SequenceNrMonotonic sequence number within the persistence id.
adapter_manifest: StringDurable event-adapter manifest, separate from serializer manifests.
writer_uuid: StringStable identifier of the writer instance that produced the event.
timestamp_ms: i64Event timestamp as milliseconds since the Unix epoch, 1970-01-01 UTC.
metadata: Option<SerializedPayload>Optional serialized event metadata frame.
payload: SerializedPayloadSerialized event payload frame.
Query tags attached to the adapted stored event.
Trait Implementations§
Source§impl Clone for StoredEvent
impl Clone for StoredEvent
Source§impl Debug for StoredEvent
impl Debug for StoredEvent
impl Eq for StoredEvent
Source§impl PartialEq for StoredEvent
impl PartialEq for StoredEvent
impl StructuralPartialEq for StoredEvent
Auto Trait Implementations§
impl Freeze for StoredEvent
impl RefUnwindSafe for StoredEvent
impl Send for StoredEvent
impl Sync for StoredEvent
impl Unpin for StoredEvent
impl UnsafeUnpin for StoredEvent
impl UnwindSafe for StoredEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> IntoEventHandlerResult<S> for S
impl<S> IntoEventHandlerResult<S> for S
Source§fn into_event_handler_result(self) -> Result<S, PersistenceError>
fn into_event_handler_result(self) -> Result<S, PersistenceError>
Converts this handler output into the runtime result.
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage