pub enum Delta {
Set {
key: EncodedKey,
values: EncodedValues,
},
Remove {
key: EncodedKey,
},
Drop {
key: EncodedKey,
up_to_version: Option<CommitVersion>,
keep_last_versions: Option<usize>,
},
}Variants§
Set
Remove
Fields
§
key: EncodedKeyDrop
Drop operation - completely erases versioned entries from storage. Unlike Remove (which writes a tombstone and generates CDC), Drop:
- Deletes existing entries without writing anything new
- Never generates CDC events
Fields
§
key: EncodedKey§
up_to_version: Option<CommitVersion>If Some(v), drop all versions where version < v (keeps v and later). If None, this constraint is not applied.
Implementations§
Source§impl Delta
impl Delta
Sourcepub fn key(&self) -> &EncodedKey
pub fn key(&self) -> &EncodedKey
Returns the key
Sourcepub fn values(&self) -> Option<&EncodedValues>
pub fn values(&self) -> Option<&EncodedValues>
Returns the encoded values, if None, it means the entry is marked as remove or drop.
Trait Implementations§
Source§impl Ord for Delta
impl Ord for Delta
Source§impl PartialOrd for Delta
impl PartialOrd for Delta
impl Eq for Delta
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnwindSafe for Delta
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.