Struct commands::parser::TreeNode [] [src]

pub struct TreeNode {
    pub name: String,
    pub help_symbol: String,
    pub help_text: String,
    pub hidden: bool,
    pub priority: i32,
    pub repeatable: bool,
    pub repeat_marker: Option<Rc<Node>>,
    pub successors: Vec<Rc<Node>>,
}

A parse tree node.

Fields

The name of this node.

The text used to identify this node in help text. This is typically the node name, either in plain form or decorated for parameters.

Help text describing this node.

Hidden nodes are not completed. This doesn't modify matching.

Match and complete priority.

Whether or not this node can be repeated. A repeated node can be accepted multiple times.

If present, this node will no longer be acceptable.

Possible successor nodes. Collected while building.