Struct argi::Argument[][src]

pub struct Argument<'a> {
    pub instigators: &'a [&'a str],
    pub used: bool,
    pub data: Option<String>,
    pub help: Help<'a>,
    pub parses: Option<&'a str>,
    pub parses_opt: bool,
    pub run: Option<fn(_: &Self, _: Option<String>)>,
}

Fields

instigators: &'a [&'a str]

Calls which can be made which instigate this argument

used: bool

Indicates if a user has invoked this argument at any point

data: Option<String>

Raw data found from parsing

help: Help<'a>

Help message, if added, for this argument

parses: Option<&'a str>

The type of data this argument parses, if any

parses_opt: bool

Indicates if parsing is an optional endeavour

run: Option<fn(_: &Self, _: Option<String>)>

User-implemented closure which is ran at parse-time, if added

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.

Performs the conversion.

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.