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
impl Debug for CommandArgument
Source§impl FromValue for CommandArgument
impl FromValue for CommandArgument
Auto Trait Implementations§
impl Freeze for CommandArgument
impl RefUnwindSafe for CommandArgument
impl Send for CommandArgument
impl Sync for CommandArgument
impl Unpin for CommandArgument
impl UnwindSafe for CommandArgument
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
Mutably borrows from an owned value. Read more