pub struct ScanOptions {
pub excluded: Vec<String>,
pub config: ConfigMode,
pub hidden: bool,
pub no_ignore: bool,
pub no_ignore_parent: bool,
pub no_ignore_dot: bool,
pub no_ignore_vcs: bool,
pub treat_doc_strings_as_comments: bool,
}Expand description
Scan options shared by all commands that invoke the scanner.
This mirrors the scan-relevant fields of GlobalArgs without any
UI-specific fields (verbose, no_progress). Lower-tier crates
(scan, format, model) depend on this instead of tokmd-config.
Fields§
§excluded: Vec<String>Glob patterns to exclude.
config: ConfigModeWhether to load scan config files (tokei.toml / .tokeirc).
Count hidden files and directories.
no_ignore: boolDon’t respect ignore files (.gitignore, .ignore, etc.).
no_ignore_parent: boolDon’t respect ignore files in parent directories.
no_ignore_dot: boolDon’t respect .ignore and .tokeignore files.
no_ignore_vcs: boolDon’t respect VCS ignore files (.gitignore, .hgignore, etc.).
treat_doc_strings_as_comments: boolTreat doc strings as comments.
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
Source§impl<'de> Deserialize<'de> for ScanOptions
impl<'de> Deserialize<'de> for ScanOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScanOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScanOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GlobalArgs> for ScanOptions
impl From<&GlobalArgs> for ScanOptions
Source§fn from(g: &GlobalArgs) -> ScanOptions
fn from(g: &GlobalArgs) -> ScanOptions
Converts to this type from the input type.
Source§impl From<GlobalArgs> for ScanOptions
impl From<GlobalArgs> for ScanOptions
Source§fn from(g: GlobalArgs) -> ScanOptions
fn from(g: GlobalArgs) -> ScanOptions
Converts to this type from the input type.
Source§impl Serialize for ScanOptions
impl Serialize for ScanOptions
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 ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnsafeUnpin 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