pub struct ScanOptions {
pub parallel_processing: bool,
pub max_concurrency: usize,
pub metadata_extraction: bool,
pub content_analysis: bool,
pub git_integration: bool,
pub follow_symlinks: bool,
pub include_hidden: bool,
pub max_file_size: Option<u64>,
pub include_extensions: Option<Vec<String>>,
pub exclude_extensions: Option<Vec<String>>,
}Expand description
Configuration options for scanning operations
Fields§
§parallel_processing: boolEnable parallel processing using Rayon
max_concurrency: usizeMaximum number of concurrent file operations
metadata_extraction: boolExtract detailed file metadata
content_analysis: boolPerform content analysis (imports, documentation)
git_integration: boolUse git integration when available
follow_symlinks: boolFollow symbolic links
Include hidden files and directories
max_file_size: Option<u64>Maximum file size to process (bytes)
include_extensions: Option<Vec<String>>Custom file extensions to include
exclude_extensions: Option<Vec<String>>Custom file extensions to exclude
Implementations§
Source§impl ScanOptions
impl ScanOptions
Sourcepub fn with_parallel_processing(self, enabled: bool) -> Self
pub fn with_parallel_processing(self, enabled: bool) -> Self
Enable parallel processing
Sourcepub fn with_max_concurrency(self, max: usize) -> Self
pub fn with_max_concurrency(self, max: usize) -> Self
Set maximum concurrency level
Sourcepub fn with_metadata_extraction(self, enabled: bool) -> Self
pub fn with_metadata_extraction(self, enabled: bool) -> Self
Enable metadata extraction
Sourcepub fn with_content_analysis(self, enabled: bool) -> Self
pub fn with_content_analysis(self, enabled: bool) -> Self
Enable content analysis
Sourcepub fn with_git_integration(self, enabled: bool) -> Self
pub fn with_git_integration(self, enabled: bool) -> Self
Enable git integration
Sourcepub fn with_follow_symlinks(self, enabled: bool) -> Self
pub fn with_follow_symlinks(self, enabled: bool) -> Self
Follow symbolic links
Include hidden files
Sourcepub fn with_max_file_size(self, size: Option<u64>) -> Self
pub fn with_max_file_size(self, size: Option<u64>) -> Self
Set maximum file size limit
Sourcepub fn with_include_extensions(self, extensions: Vec<String>) -> Self
pub fn with_include_extensions(self, extensions: Vec<String>) -> Self
Set extensions to include
Sourcepub fn with_exclude_extensions(self, extensions: Vec<String>) -> Self
pub fn with_exclude_extensions(self, extensions: Vec<String>) -> Self
Set extensions to exclude
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
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 ScanOptions
impl Debug for ScanOptions
Auto Trait Implementations§
impl Freeze for ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnwindSafe for ScanOptions
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