pub struct Command {
pub level: u8,
pub name: String,
pub description: String,
pub script: Option<Script>,
pub subcommands: Vec<Command>,
pub required_args: Vec<RequiredArg>,
pub optional_args: Vec<OptionalArg>,
pub named_flags: Vec<NamedFlag>,
}
Fields§
§level: u8
§name: String
§description: String
§script: Option<Script>
§subcommands: Vec<Command>
§required_args: Vec<RequiredArg>
§optional_args: Vec<OptionalArg>
§named_flags: Vec<NamedFlag>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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