Enum rustis::commands::ZAddCondition
source · 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§fn default() -> ZAddCondition
fn default() -> ZAddCondition
Returns the “default value” for a type. Read more
source§impl ToArgs for ZAddCondition
impl ToArgs for ZAddCondition
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 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