pub struct Command {
pub name: String,
pub usage: Option<String>,
pub flags: Option<Vec<Flag>>,
pub description: String,
pub children: Option<Vec<Command>>,
/* private fields */
}
Expand description
The Command struct to initialize a new command
Fields§
§name: String
§usage: Option<String>
§flags: Option<Vec<Flag>>
§description: String
§children: Option<Vec<Command>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
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