pub struct CommandTree {
pub command: String,
pub options: Vec<OptionSpec>,
pub arguments: Vec<ArgumentSpec>,
pub subcommands: Vec<SubcommandSpec>,
pub total_commands: usize,
}Expand description
Complete command tree discovered through recursive probing.
Fields§
§command: StringThe root command name.
options: Vec<OptionSpec>Root-level options.
arguments: Vec<ArgumentSpec>Root-level arguments.
subcommands: Vec<SubcommandSpec>All subcommands (hierarchical structure).
total_commands: usizeTotal number of commands discovered (including nested).
Trait Implementations§
Source§impl Debug for CommandTree
impl Debug for CommandTree
Auto Trait Implementations§
impl Freeze for CommandTree
impl RefUnwindSafe for CommandTree
impl Send for CommandTree
impl Sync for CommandTree
impl Unpin for CommandTree
impl UnwindSafe for CommandTree
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