pub struct DiscoveryConfig {
pub max_depth: Option<usize>,
pub extension: Option<String>,
pub max_file_size: Option<u64>,
pub follow_links: bool,
pub include_hidden: bool,
pub recursive: bool,
}Expand description
Configuration for file discovery.
Controls how files are discovered, including recursion depth, filtering, and symlink handling.
Fields§
§max_depth: Option<usize>Maximum recursion depth for directory traversal.
None: Unlimited depth (use with caution)Some(0): Current directory onlySome(n): Traverse up to n levels deep
extension: Option<String>Filter by file extension (without leading dot).
Only files with this extension will be included.
Example: Some("hedl") matches “file.hedl” but not “file.txt”
max_file_size: Option<u64>Maximum file size in bytes.
Files larger than this will be excluded.
follow_links: boolFollow symbolic links during traversal.
When false, symlinks are ignored.
Include hidden files (starting with ‘.’).
When false, hidden files and directories are skipped.
recursive: boolEnable recursive directory traversal.
When false, only process files matching patterns directly, don’t traverse directories.
Trait Implementations§
Source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
Source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
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 DiscoveryConfig
impl Debug for DiscoveryConfig
Auto Trait Implementations§
impl Freeze for DiscoveryConfig
impl RefUnwindSafe for DiscoveryConfig
impl Send for DiscoveryConfig
impl Sync for DiscoveryConfig
impl Unpin for DiscoveryConfig
impl UnwindSafe for DiscoveryConfig
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