pub struct DiffSummary {
pub added: u64,
pub removed: u64,
pub changed: u64,
pub unchanged: u64,
}Expand description
Compact summary of a DiffReport (counts only).
Useful when callers only need a tally of changes without the per-tile detail (e.g. for periodic monitoring or alerting).
Fields§
§added: u64Number of tiles in the new archive that are absent from the old.
removed: u64Number of tiles in the old archive that are absent from the new.
changed: u64Number of tiles present in both with differing content.
unchanged: u64Number of tiles present in both with identical content.
Implementations§
Source§impl DiffSummary
impl DiffSummary
Sourcepub fn total_changes(&self) -> u64
pub fn total_changes(&self) -> u64
Total number of changes (added + removed + changed).
Sourcepub fn total_tiles(&self) -> u64
pub fn total_tiles(&self) -> u64
Total number of tiles considered (changes + unchanged).
Trait Implementations§
Source§impl Clone for DiffSummary
impl Clone for DiffSummary
Source§fn clone(&self) -> DiffSummary
fn clone(&self) -> DiffSummary
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 moreimpl Copy for DiffSummary
Source§impl Debug for DiffSummary
impl Debug for DiffSummary
Source§impl Default for DiffSummary
impl Default for DiffSummary
Source§fn default() -> DiffSummary
fn default() -> DiffSummary
Returns the “default value” for a type. Read more
impl Eq for DiffSummary
Source§impl PartialEq for DiffSummary
impl PartialEq for DiffSummary
Source§fn eq(&self, other: &DiffSummary) -> bool
fn eq(&self, other: &DiffSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiffSummary
Auto Trait Implementations§
impl Freeze for DiffSummary
impl RefUnwindSafe for DiffSummary
impl Send for DiffSummary
impl Sync for DiffSummary
impl Unpin for DiffSummary
impl UnsafeUnpin for DiffSummary
impl UnwindSafe for DiffSummary
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