Struct CommandArgument

Source
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§

Source§

impl Debug for CommandArgument

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromValue for CommandArgument

Source§

fn from_value(value: Value) -> Result<Self>

Used to do Value to user type conversion Read more
Source§

fn from_value_with_command(value: Value, _command: &Command) -> Result<Self>

Source§

fn next_functor<I: Iterator<Item = Value>>() -> Box<dyn FnMut(&mut I) -> Option<Result<Self>>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,