pub struct FileScanConfig {
pub threads: Option<usize>,
pub verbose: Option<bool>,
pub skip: Option<Vec<PathBuf>>,
pub ignore: Option<Vec<PathBuf>>,
pub max_depth: Option<usize>,
}Expand description
Scanning options from the configuration file.
Fields§
§threads: Option<usize>Number of threads for scanning
verbose: Option<bool>Whether to show verbose output
skip: Option<Vec<PathBuf>>Directories to skip during scanning
ignore: Option<Vec<PathBuf>>Directories to ignore during scanning
max_depth: Option<usize>Maximum directory depth to scan
Trait Implementations§
Source§impl Debug for FileScanConfig
impl Debug for FileScanConfig
Source§impl Default for FileScanConfig
impl Default for FileScanConfig
Source§fn default() -> FileScanConfig
fn default() -> FileScanConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileScanConfig
impl<'de> Deserialize<'de> for FileScanConfig
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 FileScanConfig
impl RefUnwindSafe for FileScanConfig
impl Send for FileScanConfig
impl Sync for FileScanConfig
impl Unpin for FileScanConfig
impl UnsafeUnpin for FileScanConfig
impl UnwindSafe for FileScanConfig
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> 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