pub struct DiffResult {
pub output: CommandOutput,
pub container: String,
pub filesystem_changes: Vec<FilesystemChange>,
}
Expand description
Result from the diff command
Fields§
§output: CommandOutput
Raw command output
container: String
Container that was inspected
filesystem_changes: Vec<FilesystemChange>
Parsed filesystem changes
Implementations§
Source§impl DiffResult
impl DiffResult
Sourcepub fn filesystem_changes(&self) -> &[FilesystemChange]
pub fn filesystem_changes(&self) -> &[FilesystemChange]
Get the filesystem changes
Sourcepub fn output(&self) -> &CommandOutput
pub fn output(&self) -> &CommandOutput
Get the raw command output
Sourcepub fn change_count(&self) -> usize
pub fn change_count(&self) -> usize
Get change count
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Check if there are any changes
Sourcepub fn changes_by_type(
&self,
change_type: &FilesystemChangeType,
) -> Vec<&FilesystemChange>
pub fn changes_by_type( &self, change_type: &FilesystemChangeType, ) -> Vec<&FilesystemChange>
Get changes by type
Trait Implementations§
Source§impl Clone for DiffResult
impl Clone for DiffResult
Source§fn clone(&self) -> DiffResult
fn clone(&self) -> DiffResult
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 DiffResult
impl RefUnwindSafe for DiffResult
impl Send for DiffResult
impl Sync for DiffResult
impl Unpin for DiffResult
impl UnwindSafe for DiffResult
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