pub struct ZaddFlags {
pub nx: bool,
pub xx: bool,
pub gt: bool,
pub lt: bool,
pub ch: bool,
}Expand description
Parsed ZADD condition flags. CH only changes the reply
(changed count instead of added count) — callers read
ZaddReport::changed when set; the engine behavior is identical.
Fields§
§nx: boolOnly add new members; never update existing ones.
xx: boolOnly update existing members; never add new ones.
gt: boolOnly update when the new score is greater than the current.
lt: boolOnly update when the new score is less than the current.
ch: boolReply with changed (added + updated) instead of added.
Implementations§
Trait Implementations§
impl Copy for ZaddFlags
impl Eq for ZaddFlags
impl StructuralPartialEq for ZaddFlags
Auto Trait Implementations§
impl Freeze for ZaddFlags
impl RefUnwindSafe for ZaddFlags
impl Send for ZaddFlags
impl Sync for ZaddFlags
impl Unpin for ZaddFlags
impl UnsafeUnpin for ZaddFlags
impl UnwindSafe for ZaddFlags
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