pub struct WalkOptions {
pub max_file_size: Option<usize>,
pub follow_links: bool,
pub include_hidden: bool,
pub parallel: bool,
pub ignore_file: String,
pub ignore_patterns: Vec<String>,
pub include_patterns: Vec<String>,
pub custom_priorities: Vec<CompiledPriority>,
}
Expand description
Options for walking directories
Fields§
§max_file_size: Option<usize>
Maximum file size in bytes
follow_links: bool
Follow symbolic links
Include hidden files
parallel: bool
Use parallel processing
ignore_file: String
Custom ignore file name (default: .digestignore)
ignore_patterns: Vec<String>
Additional glob patterns to ignore
include_patterns: Vec<String>
Only include files matching these patterns
custom_priorities: Vec<CompiledPriority>
Custom priority rules for file prioritization
Implementations§
Source§impl WalkOptions
impl WalkOptions
Sourcepub fn from_config(config: &Config) -> Result<Self>
pub fn from_config(config: &Config) -> Result<Self>
Create WalkOptions from CLI config
Trait Implementations§
Source§impl Clone for WalkOptions
impl Clone for WalkOptions
Source§fn clone(&self) -> WalkOptions
fn clone(&self) -> WalkOptions
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 WalkOptions
impl Debug for WalkOptions
Auto Trait Implementations§
impl Freeze for WalkOptions
impl RefUnwindSafe for WalkOptions
impl Send for WalkOptions
impl Sync for WalkOptions
impl Unpin for WalkOptions
impl UnwindSafe for WalkOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more