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<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 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