[][src]Struct redismodule_cmd::Command

pub struct Command {
    pub name: &'static str,
    pub desc: &'static str,
    pub required_args: Vec<Arg>,
    pub optional_args: Vec<Arg>,
    pub kwargs: HashMap<&'static str, Arg>,
}

Fields

name: &'static strdesc: &'static strrequired_args: Vec<Arg>optional_args: Vec<Arg>kwargs: HashMap<&'static str, Arg>

Implementations

impl Command[src]

pub fn new(name: &'static str, desc: &'static str) -> Self[src]

pub fn add_arg(&mut self, arg: Arg)[src]

pub fn parse_args(
    &self,
    raw_args: Vec<String>
) -> Result<HashMap<&'static str, Box<dyn Value>>, RedisError>
[src]

Trait Implementations

impl Debug for Command[src]

impl PartialEq<Command> for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

impl !RefUnwindSafe for Command

impl !Send for Command

impl !Sync for Command

impl Unpin for Command

impl !UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.