pub struct ScanConfig {
pub path: PathBuf,
pub format: OutputFormat,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub parallel: bool,
pub max_threads: Option<usize>,
pub incremental: bool,
pub cache_dir: PathBuf,
pub verbose: bool,
}Expand description
Configuration for RAXIT scan
Fields§
§path: PathBufPath to scan (directory or file)
format: OutputFormatOutput format (yaml or json)
include: Vec<String>File patterns to include (glob patterns)
exclude: Vec<String>File patterns to exclude (glob patterns)
parallel: boolEnable parallel processing
max_threads: Option<usize>Maximum number of threads for parallel processing
incremental: boolEnable incremental scanning with cache
cache_dir: PathBufCache directory for incremental scanning
verbose: boolEnable verbose output
Implementations§
Source§impl ScanConfig
impl ScanConfig
Sourcepub fn with_format(self, format: impl AsRef<str>) -> Self
pub fn with_format(self, format: impl AsRef<str>) -> Self
Set the output format
Sourcepub fn with_include(self, pattern: impl Into<String>) -> Self
pub fn with_include(self, pattern: impl Into<String>) -> Self
Add include pattern
Sourcepub fn with_exclude(self, pattern: impl Into<String>) -> Self
pub fn with_exclude(self, pattern: impl Into<String>) -> Self
Add exclude pattern
Sourcepub fn with_parallel(self, parallel: bool) -> Self
pub fn with_parallel(self, parallel: bool) -> Self
Enable/disable parallel processing
Sourcepub fn with_max_threads(self, threads: usize) -> Self
pub fn with_max_threads(self, threads: usize) -> Self
Set max threads
Sourcepub fn with_incremental(self, incremental: bool) -> Self
pub fn with_incremental(self, incremental: bool) -> Self
Enable incremental scanning
Sourcepub fn with_verbose(self, verbose: bool) -> Self
pub fn with_verbose(self, verbose: bool) -> Self
Enable verbose output
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
Source§impl Default for ScanConfig
impl Default for ScanConfig
Source§impl<'de> Deserialize<'de> for ScanConfig
impl<'de> Deserialize<'de> for ScanConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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> 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