Struct exonum::helpers::fabric::Argument [] [src]

pub struct Argument {
    pub name: &'static str,
    pub argument_type: ArgumentType,
    pub required: bool,
    pub help: &'static str,
}

Abstraction to represent arguments in command line.

Fields

Name of the current argument. This name is used in context.arg(name).

Explains how this argument is represented.

Explains if the argument required or not.

Help message.

Methods

impl Argument
[src]

Creates a new argument with long and optionally short names.

Creates a new positional argument.

Trait Implementations

impl Clone for Argument
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Argument
[src]

impl Debug for Argument
[src]

Formats the value using the given formatter.