Enum redis_driver::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
sourceimpl Default for ZAddCondition
impl Default for ZAddCondition
sourceimpl IntoArgs for ZAddCondition
impl IntoArgs for ZAddCondition
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ZAddCondition
impl Send for ZAddCondition
impl Sync for ZAddCondition
impl Unpin for ZAddCondition
impl UnwindSafe for ZAddCondition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more