pub struct HandlerCommand {
pub name: String,
pub about: String,
}Expand description
One handler-specific subcommand advertised through HandlerMeta::commands.
This is the unit of a package handler’s “API” that the CLI can list and dispatch.
Fields§
§name: StringSubcommand verb, e.g. "coords".
about: StringOne-line description shown by znippy handlers.
Implementations§
Trait Implementations§
Source§impl Clone for HandlerCommand
impl Clone for HandlerCommand
Source§fn clone(&self) -> HandlerCommand
fn clone(&self) -> HandlerCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HandlerCommand
impl RefUnwindSafe for HandlerCommand
impl Send for HandlerCommand
impl Sync for HandlerCommand
impl Unpin for HandlerCommand
impl UnsafeUnpin for HandlerCommand
impl UnwindSafe for HandlerCommand
Blanket Implementations§
impl<T> Allocation for T
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