pub struct Delta {
pub entries: Vec<DeltaEntry>,
pub base_checkpoint: Option<String>,
pub is_full: bool,
}Expand description
Delta between two states (incremental snapshot)
Fields§
§entries: Vec<DeltaEntry>Entries in this delta
base_checkpoint: Option<String>Reference to base checkpoint (None for full snapshot)
is_full: boolWhether this is a full snapshot
Implementations§
Source§impl Delta
impl Delta
pub fn new_incremental(base_checkpoint: String) -> Self
pub fn new_full() -> Self
pub fn add_entry(&mut self, entry: DeltaEntry)
pub fn is_empty(&self) -> bool
pub fn added_count(&self) -> usize
pub fn modified_count(&self) -> usize
pub fn deleted_count(&self) -> usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Delta
impl<'de> Deserialize<'de> for Delta
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
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin 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