pub struct Cmd {
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 sigils: Vec<Arg>,
pub restart_token: Option<String>,
}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.
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.
Trait Implementations§
impl Eq for Cmd
Auto Trait Implementations§
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