pub struct SyncResult {
pub created: usize,
pub updated: usize,
pub deleted: usize,
pub skipped: usize,
pub skip_reasons: HashMap<String, usize>,
pub conflicts: usize,
pub errors: Vec<String>,
}Expand description
Synchronization result with statistics
Fields§
§created: usizeFiles created
updated: usizeFiles updated
deleted: usizeFiles deleted
skipped: usizeFiles skipped
skip_reasons: HashMap<String, usize>Skip reasons with counts
conflicts: usizeConflicts encountered
errors: Vec<String>Errors encountered
Implementations§
Source§impl SyncResult
impl SyncResult
Sourcepub const fn total_operations(&self) -> usize
pub const fn total_operations(&self) -> usize
Total operations performed
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Whether sync was successful (no errors)
Trait Implementations§
Source§impl Clone for SyncResult
impl Clone for SyncResult
Source§fn clone(&self) -> SyncResult
fn clone(&self) -> SyncResult
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 SyncResult
impl Debug for SyncResult
Source§impl Default for SyncResult
impl Default for SyncResult
Source§fn default() -> SyncResult
fn default() -> SyncResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyncResult
impl RefUnwindSafe for SyncResult
impl Send for SyncResult
impl Sync for SyncResult
impl Unpin for SyncResult
impl UnwindSafe for SyncResult
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