pub struct CommandOption {
pub name: &'static str,
pub position: usize,
pub description: &'static str,
pub value: CommandOptionValueKind,
}Expand description
The option command cane take
Fields§
§name: &'static strThe name of option when it is treated as named argument
position: usizeThe position of option when it is treated as positional argument
description: &'static strThe description of option
value: CommandOptionValueKindThe kind of value option can take
Trait Implementations§
Source§impl Debug for CommandOption
impl Debug for CommandOption
Source§impl PartialEq for CommandOption
impl PartialEq for CommandOption
impl StructuralPartialEq for CommandOption
Auto Trait Implementations§
impl Freeze for CommandOption
impl RefUnwindSafe for CommandOption
impl Send for CommandOption
impl Sync for CommandOption
impl Unpin for CommandOption
impl UnwindSafe for CommandOption
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