pub struct CommandBuilder<SelectCommand> { /* private fields */ }Expand description
A builder for creating raw redis commands
Implementations§
Source§impl CommandBuilder<SelectCommand>
impl CommandBuilder<SelectCommand>
Sourcepub fn set<T: Encode>(
self,
key: impl Into<Vec<u8>>,
value: T,
) -> FunctionResult<CommandBuilder<Set>>
pub fn set<T: Encode>( self, key: impl Into<Vec<u8>>, value: T, ) -> FunctionResult<CommandBuilder<Set>>
Set the command to execute
Sourcepub fn any(self, command: impl Into<String>) -> CommandBuilder<Any>
pub fn any(self, command: impl Into<String>) -> CommandBuilder<Any>
Set the command to execute
Source§impl CommandBuilder<Set>
impl CommandBuilder<Set>
Trait Implementations§
Source§impl<SelectCommand: Clone> Clone for CommandBuilder<SelectCommand>
impl<SelectCommand: Clone> Clone for CommandBuilder<SelectCommand>
Source§fn clone(&self) -> CommandBuilder<SelectCommand>
fn clone(&self) -> CommandBuilder<SelectCommand>
Returns a duplicate 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<SelectCommand> Freeze for CommandBuilder<SelectCommand>where
SelectCommand: Freeze,
impl<SelectCommand> RefUnwindSafe for CommandBuilder<SelectCommand>where
SelectCommand: RefUnwindSafe,
impl<SelectCommand> Send for CommandBuilder<SelectCommand>where
SelectCommand: Send,
impl<SelectCommand> Sync for CommandBuilder<SelectCommand>where
SelectCommand: Sync,
impl<SelectCommand> Unpin for CommandBuilder<SelectCommand>where
SelectCommand: Unpin,
impl<SelectCommand> UnwindSafe for CommandBuilder<SelectCommand>where
SelectCommand: UnwindSafe,
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