pub struct ScanSettings {
pub paths: Vec<String>,
pub options: ScanOptions,
}Expand description
Global scan settings shared by all operations.
Fields§
§paths: Vec<String>Paths to scan (defaults to ["."]).
options: ScanOptionsScan options (excludes, ignore flags, etc.).
Implementations§
Source§impl ScanSettings
impl ScanSettings
Sourcepub fn current_dir() -> ScanSettings
pub fn current_dir() -> ScanSettings
Create settings for scanning the current directory with defaults.
Sourcepub fn for_paths(paths: Vec<String>) -> ScanSettings
pub fn for_paths(paths: Vec<String>) -> ScanSettings
Create settings for scanning specific paths.
Trait Implementations§
Source§impl Clone for ScanSettings
impl Clone for ScanSettings
Source§fn clone(&self) -> ScanSettings
fn clone(&self) -> ScanSettings
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 ScanSettings
impl Debug for ScanSettings
Source§impl Default for ScanSettings
impl Default for ScanSettings
Source§fn default() -> ScanSettings
fn default() -> ScanSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScanSettings
impl<'de> Deserialize<'de> for ScanSettings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScanSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScanSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ScanSettings
impl Serialize for ScanSettings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ScanSettings
impl RefUnwindSafe for ScanSettings
impl Send for ScanSettings
impl Sync for ScanSettings
impl Unpin for ScanSettings
impl UnsafeUnpin for ScanSettings
impl UnwindSafe for ScanSettings
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