pub enum VersionPayload {
Present(Vec<(String, Value)>),
Tombstone,
}Expand description
What a RowVersion records. Present carries the row’s
column values at the moment of commit; Tombstone records that
the row was deleted at this version’s begin timestamp.
Storing column-value pairs as a Vec<(String, Value)> rather
than BTreeMap<String, Value> because:
- The vector preserves declaration order (stable for tests + diagnostics).
- Lookups by column are rare on this path — the executor walks the row by projection order.
Variants§
Present(Vec<(String, Value)>)
Row exists with the given column-value pairs.
Tombstone
Row was deleted at this version’s begin timestamp. Visible
readers see “no such row”; readers older than begin still
see whatever the previous version held.
Trait Implementations§
Source§impl Clone for VersionPayload
impl Clone for VersionPayload
Source§fn clone(&self) -> VersionPayload
fn clone(&self) -> VersionPayload
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 VersionPayload
impl Debug for VersionPayload
Source§impl PartialEq for VersionPayload
impl PartialEq for VersionPayload
Source§fn eq(&self, other: &VersionPayload) -> bool
fn eq(&self, other: &VersionPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VersionPayload
Auto Trait Implementations§
impl Freeze for VersionPayload
impl RefUnwindSafe for VersionPayload
impl Send for VersionPayload
impl Sync for VersionPayload
impl Unpin for VersionPayload
impl UnsafeUnpin for VersionPayload
impl UnwindSafe for VersionPayload
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