pub enum ZAddCondition {
None,
NX,
XX,
}
Expand description
Condition option for the zadd
command
Variants§
None
No condition
NX
Only update elements that already exist. Don’t add new elements.
XX
Only add new elements. Don’t update already existing elements.
Trait Implementations§
Source§impl Default for ZAddCondition
impl Default for ZAddCondition
Source§impl IntoArgs for ZAddCondition
impl IntoArgs for ZAddCondition
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations§
impl Freeze for ZAddCondition
impl RefUnwindSafe for ZAddCondition
impl Send for ZAddCondition
impl Sync for ZAddCondition
impl Unpin for ZAddCondition
impl UnwindSafe for ZAddCondition
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