pub struct CliSpec {
pub command: &'static str,
pub usage: &'static str,
pub flags: &'static [CliFlagSpec],
pub description: &'static str,
}Expand description
Static specification of an action’s CLI surface.
Fields§
§command: &'static strSubcommand name.
usage: &'static strUsage string shown in help.
flags: &'static [CliFlagSpec]Flags accepted by the subcommand.
description: &'static strHuman-readable description of the subcommand.
Trait Implementations§
impl Copy for CliSpec
impl Eq for CliSpec
impl StructuralPartialEq for CliSpec
Auto Trait Implementations§
impl Freeze for CliSpec
impl RefUnwindSafe for CliSpec
impl Send for CliSpec
impl Sync for CliSpec
impl Unpin for CliSpec
impl UnsafeUnpin for CliSpec
impl UnwindSafe for CliSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.