pub struct UsageSpec {
pub info: Info,
pub flags: Vec<Flag>,
pub args: Vec<Arg>,
pub cmds: Vec<Cmd>,
pub completes: HashMap<String, Complete>,
pub default_subcommand: Option<String>,
pub default_subcommand_flags: bool,
pub pending_mounts: Vec<PendingMount>,
pub sigils: Vec<Arg>,
pub restart_token: Option<String>,
pub clause: Option<Clause>,
}Fields§
§info: Info§flags: Vec<Flag>§args: Vec<Arg>§cmds: Vec<Cmd>§completes: HashMap<String, Complete>§default_subcommand: Option<String>§default_subcommand_flags: bool§pending_mounts: Vec<PendingMount>Root-level mounts, whose commands the generated completion discovers by running them.
sigils: Vec<Arg>Root-level sigil arguments.
restart_token: Option<String>§clause: Option<Clause>Trait Implementations§
Auto Trait Implementations§
impl Forget for UsageSpec
impl Freeze for UsageSpec
impl RefUnwindSafe for UsageSpec
impl Send for UsageSpec
impl Sync for UsageSpec
impl Unpin for UsageSpec
impl UnsafeUnpin for UsageSpec
impl UnwindSafe for UsageSpec
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