Struct CommandInfo

Source
pub struct CommandInfo {
    pub name: String,
    pub arity: isize,
    pub flags: Vec<String>,
    pub first_key: usize,
    pub last_key: isize,
    pub step: usize,
    pub acl_categories: Vec<String>,
    pub command_tips: Vec<CommandTip>,
    pub key_specifications: Vec<KeySpecification>,
    pub sub_commands: Vec<CommandInfo>,
}
Expand description

Command info result for the command command.

Fields§

§name: String

This is the command’s name in lowercase.

§arity: isize

Arity is the number of arguments a command expects. It follows a simple pattern:

  • A positive integer means a fixed number of arguments.
  • A negative integer means a minimal number of arguments.
§flags: Vec<String>

Command flags are an array. See COMMAND documentation for the list of flags

§first_key: usize

The position of the command’s first key name argument. For most commands, the first key’s position is 1. Position 0 is always the command name itself.

§last_key: isize

The position of the command’s last key name argument.

§step: usize

The step, or increment, between the first key and the position of the next key.

§acl_categories: Vec<String>

[From Redis 6.0] This is an array of simple strings that are the ACL categories to which the command belongs.

§command_tips: Vec<CommandTip>

[From Redis 7.0] Helpful information about the command. To be used by clients/proxies. See https://redis.io/docs/reference/command-tips/

§key_specifications: Vec<KeySpecification>

[From Redis 7.0] This is an array consisting of the command’s key specifications. See https://redis.io/docs/reference/key-specs/

§sub_commands: Vec<CommandInfo>

Trait Implementations§

Source§

impl Clone for CommandInfo

Source§

fn clone(&self) -> CommandInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CommandInfo

Source§

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

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

impl FromValue for CommandInfo

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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,