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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more