pub struct DeltaManifest {
    pub base_epoch: u64,
    pub delta_epoch: u64,
    pub changes: Vec<FileChange>,
    pub created_at: u64,
}Expand description
Delta manifest tracks incremental changes since last full import
Fields§
§base_epoch: u64§delta_epoch: u64§changes: Vec<FileChange>§created_at: u64Implementations§
Source§impl DeltaManifest
 
impl DeltaManifest
pub fn new(base_epoch: u64, delta_epoch: u64) -> Self
pub fn add_change(&mut self, change: FileChange)
pub fn write_to_file(&self, path: &Path) -> Result<()>
pub fn read_from_file(path: &Path) -> Result<Self>
Trait Implementations§
Source§impl Clone for DeltaManifest
 
impl Clone for DeltaManifest
Source§fn clone(&self) -> DeltaManifest
 
fn clone(&self) -> DeltaManifest
Returns a duplicate of the value. Read more
1.0.0 · 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 DeltaManifest
 
impl Debug for DeltaManifest
Source§impl<'de> Deserialize<'de> for DeltaManifest
 
impl<'de> Deserialize<'de> for DeltaManifest
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 DeltaManifest
impl RefUnwindSafe for DeltaManifest
impl Send for DeltaManifest
impl Sync for DeltaManifest
impl Unpin for DeltaManifest
impl UnwindSafe for DeltaManifest
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