pub struct AppendReceipt {
pub batch_id: BatchId,
pub first_position: u64,
pub last_position: u64,
pub stream_id: StreamId,
pub previous_revision: Option<StreamRevision>,
pub current_revision: StreamRevision,
pub durability: ReceiptDurability,
}Expand description
The result of a successful append: the assigned positions, resulting stream revision, and the durability that was achieved.
Fields§
§batch_id: BatchIdStable identity of the appended batch.
first_position: u64Global position of the first event in the batch.
last_position: u64Global position of the last event in the batch.
stream_id: StreamIdStable engine identity of the target stream.
previous_revision: Option<StreamRevision>The stream’s revision before this batch, or None if it was new.
current_revision: StreamRevisionThe stream’s revision after this batch.
durability: ReceiptDurabilityDurability guaranteed at the time the receipt was returned.
Trait Implementations§
Source§impl Clone for AppendReceipt
impl Clone for AppendReceipt
Source§fn clone(&self) -> AppendReceipt
fn clone(&self) -> AppendReceipt
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 moreSource§impl Debug for AppendReceipt
impl Debug for AppendReceipt
Source§impl<'de> Deserialize<'de> for AppendReceipt
impl<'de> Deserialize<'de> for AppendReceipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AppendReceipt
Source§impl PartialEq for AppendReceipt
impl PartialEq for AppendReceipt
Source§impl Serialize for AppendReceipt
impl Serialize for AppendReceipt
impl StructuralPartialEq for AppendReceipt
Auto Trait Implementations§
impl Freeze for AppendReceipt
impl RefUnwindSafe for AppendReceipt
impl Send for AppendReceipt
impl Sync for AppendReceipt
impl Unpin for AppendReceipt
impl UnsafeUnpin for AppendReceipt
impl UnwindSafe for AppendReceipt
Blanket Implementations§
impl<T> Body for T
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