pub struct Spec {
pub name: &'static str,
pub arity: i32,
pub flags: &'static [&'static str],
pub first_key: i32,
pub last_key: i32,
pub step: i32,
pub acl: &'static [&'static str],
pub since: &'static str,
pub complexity: &'static str,
pub summary: &'static str,
pub group: &'static str,
}Expand description
Everything COMMAND has to be able to say about one command.
Fields§
§name: &'static strThe name, lower case, which is how COMMAND reports it whatever case
the client used.
arity: i32Redis’s arity: a positive number is exact, a negative one is a minimum of its magnitude, and both count the command name itself.
flags: &'static [&'static str]The command flags, in the order COMMAND INFO lists them.
first_key: i32The first argument that is a key, or zero when there are none.
last_key: i32The last argument that is a key, negative counting back from the end.
step: i32How far apart the keys are, for the commands that take pairs.
acl: &'static [&'static str]The ACL categories, which are what COMMAND LIST FILTERBY ACLCAT reads.
since: &'static strThe Redis this command first appeared in.
complexity: &'static strThe cost, in the shape COMMAND DOCS uses.
summary: &'static strOne line about what it does, in our words.
group: &'static strThe group in commands.toml, which is how the two files are compared.