pub enum CommandArgumentType {
    String,
    Integer,
    Double,
    Key,
    Pattern,
    UnixTime,
    PureToken,
    OneOf,
    Block,
}
Expand description

An argument must have one of the following types:

Variants

String

a string argument.

Integer

an integer argument.

Double

a double-precision argument.

Key

a string that represents the name of a key.

Pattern

a string that represents a glob-like pattern.

UnixTime

an integer that represents a Unix timestamp.

PureToken

a token, i.e. a reserved keyword, which may or may not be provided. Not to be confused with free-text user input.

OneOf

the argument is a container for nested arguments. This type enables choice among several nested arguments

Block

the argument is a container for nested arguments. This type enables grouping arguments and applying a property (such as optional) to all

Trait Implementations

Formats the value using the given formatter. Read more
Used to do Value to user type conversion 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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more