pub struct RedisCommand { /* private fields */ }
Expand description
Redis command wrapper represents array of BulkString
s
Implementations§
Source§impl RedisCommand
impl RedisCommand
Sourcepub fn arg<T: IntoRedisArgument>(self, arg: T) -> RedisCommand
pub fn arg<T: IntoRedisArgument>(self, arg: T) -> RedisCommand
Add new argument into RedisCommand
and move the one back.
The argument should implement the IntoRedisArgument
trait.
Sourcepub fn arg_mut<T: IntoRedisArgument>(&mut self, arg: T)
pub fn arg_mut<T: IntoRedisArgument>(&mut self, arg: T)
Add new argument into RedisCommand
through object changing.
The argument should implement the IntoRedisArgument
trait.
Sourcepub fn append(&mut self, other: RedisCommand)
pub fn append(&mut self, other: RedisCommand)
Append the other RedisCommand
’s arguments into self arguments.
Sourcepub fn into_resp_value(self) -> RespInternalValue
pub fn into_resp_value(self) -> RespInternalValue
Convert the self into RespInternalValue
.
Trait Implementations§
Source§impl Clone for RedisCommand
impl Clone for RedisCommand
Source§fn clone(&self) -> RedisCommand
fn clone(&self) -> RedisCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RedisCommand
impl RefUnwindSafe for RedisCommand
impl Send for RedisCommand
impl Sync for RedisCommand
impl Unpin for RedisCommand
impl UnwindSafe for RedisCommand
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