pub struct SkippedFile {
pub path: PathBuf,
pub reason: SkipReason,
}Expand description
A file that was skipped during filtering.
§Examples
use std::path::PathBuf;
use argus_difflens::filter::{SkippedFile, SkipReason};
let skipped = SkippedFile {
path: PathBuf::from("package-lock.json"),
reason: SkipReason::LockFile,
};
assert!(matches!(skipped.reason, SkipReason::LockFile));Fields§
§path: PathBufPath of the skipped file.
reason: SkipReasonWhy the file was skipped.
Trait Implementations§
Source§impl Clone for SkippedFile
impl Clone for SkippedFile
Source§fn clone(&self) -> SkippedFile
fn clone(&self) -> SkippedFile
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 SkippedFile
impl RefUnwindSafe for SkippedFile
impl Send for SkippedFile
impl Sync for SkippedFile
impl Unpin for SkippedFile
impl UnsafeUnpin for SkippedFile
impl UnwindSafe for SkippedFile
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