pub struct CliModuleArgs {
pub paths: Option<Vec<PathBuf>>,
pub format: Option<TableFormat>,
pub top: Option<usize>,
pub module_roots: Option<Vec<String>>,
pub module_depth: Option<usize>,
pub children: Option<ChildIncludeMode>,
}Fields§
§paths: Option<Vec<PathBuf>>Paths to scan (directories, files, or globs). Defaults to “.”
format: Option<TableFormat>Output format [default: md].
top: Option<usize>Show only the top N modules (by code lines), plus an “Other” row if needed. Use 0 to show all rows.
module_roots: Option<Vec<String>>Treat these top-level directories as “module roots” [default: crates,packages].
If a file path starts with one of these roots, the module key will include
module_depth segments. Otherwise, the module key is the top-level directory.
module_depth: Option<usize>How many path segments to include for module roots [default: 2].
Example: crates/foo/src/lib.rs (depth=2) => crates/foo crates/foo/src/lib.rs (depth=1) => crates
children: Option<ChildIncludeMode>Whether to include embedded languages (tokei “children” / blobs) in module totals [default: separate].
Trait Implementations§
Source§impl Args for CliModuleArgs
impl Args for CliModuleArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CliModuleArgs
impl Clone for CliModuleArgs
Source§fn clone(&self) -> CliModuleArgs
fn clone(&self) -> CliModuleArgs
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 CliModuleArgs
impl Debug for CliModuleArgs
Source§impl FromArgMatches for CliModuleArgs
impl FromArgMatches for CliModuleArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CliModuleArgs
impl RefUnwindSafe for CliModuleArgs
impl Send for CliModuleArgs
impl Sync for CliModuleArgs
impl Unpin for CliModuleArgs
impl UnsafeUnpin for CliModuleArgs
impl UnwindSafe for CliModuleArgs
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