pub struct SortedSetAddOptions {
pub if_not_exists: bool,
pub if_exists: bool,
pub greater_than: bool,
pub less_than: bool,
pub changed: bool,
}Expand description
ZADD options. The server refuses NX with XX, GT, or LT, and GT with LT.
Fields§
§if_not_exists: boolOnly add new members (NX).
if_exists: boolOnly update existing members (XX).
greater_than: boolOnly update when the new score is greater (GT). A missing member is still added.
less_than: boolOnly update when the new score is lower (LT). A missing member is still added.
changed: boolCount changed members as well as new ones (CH).
Trait Implementations§
Source§impl Clone for SortedSetAddOptions
impl Clone for SortedSetAddOptions
impl Copy for SortedSetAddOptions
Source§impl Debug for SortedSetAddOptions
impl Debug for SortedSetAddOptions
Source§impl Default for SortedSetAddOptions
impl Default for SortedSetAddOptions
impl Eq for SortedSetAddOptions
Source§impl PartialEq for SortedSetAddOptions
impl PartialEq for SortedSetAddOptions
impl StructuralPartialEq for SortedSetAddOptions
Auto Trait Implementations§
impl Freeze for SortedSetAddOptions
impl RefUnwindSafe for SortedSetAddOptions
impl Send for SortedSetAddOptions
impl Sync for SortedSetAddOptions
impl Unpin for SortedSetAddOptions
impl UnsafeUnpin for SortedSetAddOptions
impl UnwindSafe for SortedSetAddOptions
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