pub struct DiscoveryConfig {
pub include_patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub max_depth: Option<usize>,
pub include_hidden: bool,
pub respect_gitignore: bool,
pub follow_symlinks: bool,
}Expand description
Configuration for file discovery.
Fields§
§include_patterns: Vec<String>Glob patterns for files to include (e.g., “.yaml”, “.yml”)
exclude_patterns: Vec<String>Glob patterns for files/directories to exclude (e.g., “/vendor/”)
max_depth: Option<usize>Maximum recursion depth (None = unlimited)
Whether to include hidden files/directories
respect_gitignore: boolWhether to respect .gitignore files
follow_symlinks: boolWhether to follow symbolic links
Implementations§
Source§impl DiscoveryConfig
impl DiscoveryConfig
Sourcepub fn with_include_patterns(self, patterns: Vec<String>) -> Self
pub fn with_include_patterns(self, patterns: Vec<String>) -> Self
Set include patterns (builder pattern).
Sourcepub fn with_exclude_patterns(self, patterns: Vec<String>) -> Self
pub fn with_exclude_patterns(self, patterns: Vec<String>) -> Self
Set exclude patterns (builder pattern).
Sourcepub const fn with_max_depth(self, depth: Option<usize>) -> Self
pub const fn with_max_depth(self, depth: Option<usize>) -> Self
Set maximum recursion depth.
Sourcepub const fn with_unlimited_depth(self) -> Self
pub const fn with_unlimited_depth(self) -> Self
Set unlimited recursion depth (use with caution).
Set whether to include hidden files.
Sourcepub const fn with_gitignore(self, respect: bool) -> Self
pub const fn with_gitignore(self, respect: bool) -> Self
Set whether to respect .gitignore.
Sourcepub const fn with_follow_symlinks(self, follow: bool) -> Self
pub const fn with_follow_symlinks(self, follow: bool) -> Self
Set whether to follow symbolic links.
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 UnsafeUnpin 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