pub struct ChangeDetection {
pub added: Vec<PathBuf>,
pub modified: Vec<PathBuf>,
pub deleted: Vec<PathBuf>,
pub has_changes: bool,
}Expand description
Result of change detection
Fields§
§added: Vec<PathBuf>Files that were added
modified: Vec<PathBuf>Files that were modified
deleted: Vec<PathBuf>Files that were deleted
has_changes: boolWhether any changes were detected
Implementations§
Source§impl ChangeDetection
impl ChangeDetection
Sourcepub fn all_changed(&self) -> Vec<PathBuf>
pub fn all_changed(&self) -> Vec<PathBuf>
Get all changed files (added + modified + deleted)
Sourcepub fn change_count(&self) -> usize
pub fn change_count(&self) -> usize
Get the total number of changes
Trait Implementations§
Source§impl Clone for ChangeDetection
impl Clone for ChangeDetection
Source§fn clone(&self) -> ChangeDetection
fn clone(&self) -> ChangeDetection
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 moreAuto Trait Implementations§
impl Freeze for ChangeDetection
impl RefUnwindSafe for ChangeDetection
impl Send for ChangeDetection
impl Sync for ChangeDetection
impl Unpin for ChangeDetection
impl UnwindSafe for ChangeDetection
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