pub struct AppendResult {
pub last_sequence: u64,
pub events: Vec<EventEnvelope>,
}Expand description
Metadata returned after a successful EventStore::append.
Fields§
§last_sequence: u64The sequence number of the last event written in this batch.
events: Vec<EventEnvelope>The fully materialised envelopes as persisted by the store.
Each envelope has its event_id, sequence_number, stream_id, and
timestamp stamped by the store. Callers use these for return values
and projection seeding without re-loading from storage.
Trait Implementations§
Source§impl Clone for AppendResult
impl Clone for AppendResult
Source§fn clone(&self) -> AppendResult
fn clone(&self) -> AppendResult
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 moreAuto Trait Implementations§
impl Freeze for AppendResult
impl RefUnwindSafe for AppendResult
impl Send for AppendResult
impl Sync for AppendResult
impl Unpin for AppendResult
impl UnsafeUnpin for AppendResult
impl UnwindSafe for AppendResult
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