pub struct CommandNode {
pub name: String,
pub aliases: Vec<String>,
pub doc: Doc,
pub globals: Globals,
pub subcommands: Vec<i32>,
pub body: Option<CommandBody>,
}Expand description
A command may dispatch to subcommands, run its own body, or both. Globals declared here apply to this command’s own body and to every descendant subcommand body (recursive globals — “this level and downward”).
Fields§
§name: String§aliases: Vec<String>§doc: Doc§globals: Globals§subcommands: Vec<i32>§body: Option<CommandBody>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandNode
impl RefUnwindSafe for CommandNode
impl Send for CommandNode
impl Sync for CommandNode
impl Unpin for CommandNode
impl UnsafeUnpin for CommandNode
impl UnwindSafe for CommandNode
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