pub enum SkipReason {
LockFile,
GeneratedFile,
VendoredCode,
MinifiedFile,
BinaryFile,
TooLarge,
PatternMatch(String),
}Expand description
Reason a file was skipped.
§Examples
use argus_difflens::filter::SkipReason;
let reason = SkipReason::LockFile;
assert_eq!(format!("{reason}"), "lock file");Variants§
LockFile
Package manager lock file.
GeneratedFile
Auto-generated code.
VendoredCode
Third-party vendored code.
MinifiedFile
Minified or bundled file.
BinaryFile
Binary file.
TooLarge
File exceeds max changed lines threshold.
PatternMatch(String)
Matched a custom skip pattern.
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
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 SkipReason
impl Debug for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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