pub struct ZAddResult {
pub count: usize,
pub applied: Vec<(f64, String)>,
}Expand description
Result of a ZADD operation, containing both the client-facing count and the list of members that were actually applied (for AOF correctness).
Fields§
§count: usizeNumber of members added (or added+updated if CH flag was set).
applied: Vec<(f64, String)>Members that were actually inserted or had their score updated. Only these should be persisted to the AOF.
Trait Implementations§
Source§impl Clone for ZAddResult
impl Clone for ZAddResult
Source§fn clone(&self) -> ZAddResult
fn clone(&self) -> ZAddResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ZAddResult
impl RefUnwindSafe for ZAddResult
impl Send for ZAddResult
impl Sync for ZAddResult
impl Unpin for ZAddResult
impl UnsafeUnpin for ZAddResult
impl UnwindSafe for ZAddResult
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