pub struct ScanConfig {
pub roots: Vec<PathBuf>,
pub max_depth: Option<usize>,
pub parallelism: Option<usize>,
pub skip_hidden: bool,
pub respect_gitignore: bool,
pub ignore_patterns: Vec<String>,
pub min_size: Option<u64>,
pub limit: Option<usize>,
pub check_git_status: bool,
pub timeout: Option<Duration>,
}Expand description
Configuration for scanning operations
Fields§
§roots: Vec<PathBuf>Root directories to scan
max_depth: Option<usize>Maximum depth to traverse (None = unlimited)
parallelism: Option<usize>Number of parallel threads (None = auto based on CPU)
Skip hidden files and directories
respect_gitignore: boolRespect .gitignore files
ignore_patterns: Vec<String>Custom ignore patterns (glob syntax)
min_size: Option<u64>Minimum artifact size to report (bytes)
limit: Option<usize>Maximum number of projects to return
check_git_status: boolInclude git status check for each project
timeout: Option<Duration>Timeout for the entire scan operation
Implementations§
Source§impl ScanConfig
impl ScanConfig
Sourcepub fn with_max_depth(self, depth: usize) -> Self
pub fn with_max_depth(self, depth: usize) -> Self
Set maximum depth
Sourcepub fn with_parallelism(self, threads: usize) -> Self
pub fn with_parallelism(self, threads: usize) -> Self
Set parallelism
Sourcepub fn with_ignore(self, pattern: impl Into<String>) -> Self
pub fn with_ignore(self, pattern: impl Into<String>) -> Self
Add ignore pattern
Sourcepub fn with_min_size(self, size: u64) -> Self
pub fn with_min_size(self, size: u64) -> Self
Set minimum size filter
Sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Set result limit
Sourcepub fn without_git_check(self) -> Self
pub fn without_git_check(self) -> Self
Disable git status checking
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set timeout
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
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 ScanConfig
impl Debug for ScanConfig
Auto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnwindSafe for ScanConfig
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