pub struct ZAdd {
pub gate: Gate,
pub only: Move,
pub changed: bool,
}Expand description
What a ZADD was asked to do.
NX with GT or LT is refused by the parser rather than here, because a
gate that only lets new members through and a rule about which way an
existing score may move cannot both apply to the same member and Redis calls
that a syntax error.
Fields§
§gate: GateNX or XX.
only: MoveGT or LT.
changed: boolCH, which counts changed scores as well as new members.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZAdd
impl RefUnwindSafe for ZAdd
impl Send for ZAdd
impl Sync for ZAdd
impl Unpin for ZAdd
impl UnsafeUnpin for ZAdd
impl UnwindSafe for ZAdd
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