Struct commands::parser::ParameterNode
[−]
[src]
pub struct ParameterNode {
pub node: TreeNode,
pub required: bool,
pub kind: ParameterKind,
}A node representing a parameter for a command.
Fields
node |
|
required | A |
kind | What type of |
Methods
impl ParameterNode
fn new(name: &str, help_text: Option<&str>, hidden: bool, priority: i32, successors: Vec<Rc<Node>>, repeatable: bool, repeat_marker: Option<Rc<Node>>, kind: ParameterKind, required: bool) -> Self
Construct a new ParameterNode.