pub struct Cmd {Show 14 fields
pub name: String,
pub help: String,
pub hide: bool,
pub args: Vec<Arg>,
pub flags: Vec<Flag>,
pub aliases: Vec<Alias>,
pub cmds: Vec<Box<Cmd>>,
pub completes: HashMap<String, Complete>,
pub mounted: bool,
pub pending_mounts: Vec<PendingMount>,
pub mount_prefix_flags: Vec<Flag>,
pub sigils: Vec<Arg>,
pub restart_token: Option<String>,
pub clause: Option<Clause>,
}Fields§
§name: String§help: String§hide: bool§args: Vec<Arg>§flags: Vec<Flag>§aliases: Vec<Alias>§cmds: Vec<Box<Cmd>>§completes: HashMap<String, Complete>§mounted: bool§pending_mounts: Vec<PendingMount>Mounts declared by this command. Their commands are discovered by running the mount while completing, never while generating.
mount_prefix_flags: Vec<Flag>Global flags accepted before this command and replayed into its mount command.
sigils: Vec<Arg>Sigil arguments in effect here: this command’s own plus every ancestor’s, because a subcommand inherits the sigils declared by its ancestors.
restart_token: Option<String>Token that restarts argument parsing, letting one command line hold several invocations of this command.
clause: Option<Clause>Trait Implementations§
impl Eq for Cmd
Auto Trait Implementations§
impl Forget for Cmd
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnsafeUnpin for Cmd
impl UnwindSafe for Cmd
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