pub struct ScanOptions {
pub parallel_processing: bool,
pub max_concurrency: usize,
pub metadata_extraction: 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
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) -> ScanOptions
pub fn with_parallel_processing(self, enabled: bool) -> ScanOptions
Enable parallel processing
Sourcepub fn with_max_concurrency(self, max: usize) -> ScanOptions
pub fn with_max_concurrency(self, max: usize) -> ScanOptions
Set maximum concurrency level
Sourcepub fn with_metadata_extraction(self, enabled: bool) -> ScanOptions
pub fn with_metadata_extraction(self, enabled: bool) -> ScanOptions
Enable metadata extraction
Sourcepub fn with_git_integration(self, enabled: bool) -> ScanOptions
pub fn with_git_integration(self, enabled: bool) -> ScanOptions
Enable git integration
Sourcepub fn with_follow_symlinks(self, enabled: bool) -> ScanOptions
pub fn with_follow_symlinks(self, enabled: bool) -> ScanOptions
Follow symbolic links
Include hidden files
Sourcepub fn with_max_file_size(self, size: Option<u64>) -> ScanOptions
pub fn with_max_file_size(self, size: Option<u64>) -> ScanOptions
Set maximum file size limit
Sourcepub fn with_include_extensions(self, extensions: Vec<String>) -> ScanOptions
pub fn with_include_extensions(self, extensions: Vec<String>) -> ScanOptions
Set extensions to include
Sourcepub fn with_exclude_extensions(self, extensions: Vec<String>) -> ScanOptions
pub fn with_exclude_extensions(self, extensions: Vec<String>) -> ScanOptions
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
Source§impl Default for ScanOptions
impl Default for ScanOptions
Source§fn default() -> ScanOptions
fn default() -> ScanOptions
Returns the “default value” for a type. Read more
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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