pub struct CommandDescriptor {
pub name: &'static str,
pub description: &'static str,
pub flags: &'static [FlagDescriptor],
}Expand description
Descriptor for a provider extension command.
Extension commands are provider-specific subcommands (e.g.,
metric top-queries) that are registered into the core command
tree alongside the standard commands.
Fields§
§name: &'static strCommand path relative to the signal group, e.g. "top-queries".
This becomes obz metric top-queries when registered under metric.
description: &'static strShort description shown in --help.
flags: &'static [FlagDescriptor]Flags specific to this extension command.
Trait Implementations§
Source§impl Clone for CommandDescriptor
impl Clone for CommandDescriptor
Source§fn clone(&self) -> CommandDescriptor
fn clone(&self) -> CommandDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandDescriptor
impl RefUnwindSafe for CommandDescriptor
impl Send for CommandDescriptor
impl Sync for CommandDescriptor
impl Unpin for CommandDescriptor
impl UnsafeUnpin for CommandDescriptor
impl UnwindSafe for CommandDescriptor
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