Enum redis_driver::ZAddComparison
source · pub enum ZAddComparison {
None,
GT,
LT,
}
Expand description
Comparison option for the zadd command
Variants
None
No comparison
GT
Only update existing elements if the new score is greater than the current score.
This flag doesn’t prevent adding new elements.
LT
Only update existing elements if the new score is less than the current score.
This flag doesn’t prevent adding new elements.
Trait Implementations
sourceimpl Default for ZAddComparison
impl Default for ZAddComparison
sourceimpl IntoArgs for ZAddComparison
impl IntoArgs for ZAddComparison
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ZAddComparison
impl Send for ZAddComparison
impl Sync for ZAddComparison
impl Unpin for ZAddComparison
impl UnwindSafe for ZAddComparison
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