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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.