Struct rustis::commands::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
impl Debug for CommandArgument
source§impl<'de> Deserialize<'de> for CommandArgument
impl<'de> Deserialize<'de> for CommandArgument
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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