Struct slashy::commands::CommandArgumentsTree [−][src]
pub struct CommandArgumentsTree { pub children: Option<Vec<CommandArguments>>, pub func: Option<CommandFunction>, }
Expand description
The root of the command arguments tree
Seperated to make distinguishing the root from a node easier as some logic only applies to the root.
Despite this in most ways the root can act like a node.
Fields
children: Option<Vec<CommandArguments>>
The nodes in the tree
func: Option<CommandFunction>
The top level function to run
Never valid to run if children contains a SubCommand
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CommandArgumentsTree
impl Send for CommandArgumentsTree
impl Sync for CommandArgumentsTree
impl Unpin for CommandArgumentsTree
impl UnwindSafe for CommandArgumentsTree