pub struct CommandSpec {
pub name: &'static str,
pub description: &'static str,
pub options: Vec<CommandOption>,
pub subcommands: Vec<CommandSpec>,
}Expand description
The specification of coomand
Fields§
§name: &'static strThe name of command
description: &'static strThe description of command
options: Vec<CommandOption>The options command can take
subcommands: Vec<CommandSpec>The subcommands command have
Trait Implementations§
Source§impl Debug for CommandSpec
impl Debug for CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnwindSafe for CommandSpec
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