pub struct CommandArgument {
    pub name: String,
    pub display_text: String,
    pub type_: CommandArgumentType,
    pub key_spec_index: usize,
    pub token: String,
    pub summary: String,
    pub since: String,
    pub deprecated_since: String,
    pub flags: Vec<ArgumentFlag>,
    pub value: Vec<String>,
}
Expand description

Fields

name: String

the argument’s name, always present.

display_text: String

the argument’s display string, present in arguments that have a displayable representation

type_: CommandArgumentType

the argument’s type, always present.

key_spec_index: usize

this value is available for every argument of the key type. t is a 0-based index of the specification in the command’s key specifications that corresponds to the argument.

token: String

a constant literal that precedes the argument (user input) itself.

summary: String

a short description of the argument.

since: String

the debut Redis version of the argument (or for module commands, the module version).

deprecated_since: String

the Redis version that deprecated the command (or for module commands, the module version).

flags: Vec<ArgumentFlag>

an array of argument flags.

value: Vec<String>

the argument’s value.

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