pub enum SetCondition {
None,
NX,
XX,
}
Expand description
Condition option for the set_with_options
command
Variants§
None
No condition
NX
Only set the key if it does not already exist.
XX
Only set the key if it already exist.
Trait Implementations§
Source§impl Default for SetCondition
impl Default for SetCondition
Source§fn default() -> SetCondition
fn default() -> SetCondition
Returns the “default value” for a type. Read more
Source§impl ToArgs for SetCondition
impl ToArgs for SetCondition
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for SetCondition
impl RefUnwindSafe for SetCondition
impl Send for SetCondition
impl Sync for SetCondition
impl Unpin for SetCondition
impl UnwindSafe for SetCondition
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