pub enum SnapValue {
String(Bytes),
List(VecDeque<Bytes>),
SortedSet(Vec<(f64, String)>),
Hash(HashMap<String, Bytes>),
Set(HashSet<String>),
}Expand description
The value stored in a snapshot entry.
Variants§
String(Bytes)
A string value.
List(VecDeque<Bytes>)
A list of values.
SortedSet(Vec<(f64, String)>)
A sorted set: vec of (score, member) pairs.
Hash(HashMap<String, Bytes>)
A hash: map of field names to values.
Set(HashSet<String>)
An unordered set of unique string members.
Trait Implementations§
Source§impl From<SnapValue> for RecoveredValue
impl From<SnapValue> for RecoveredValue
impl StructuralPartialEq for SnapValue
Auto Trait Implementations§
impl !Freeze for SnapValue
impl RefUnwindSafe for SnapValue
impl Send for SnapValue
impl Sync for SnapValue
impl Unpin for SnapValue
impl UnwindSafe for SnapValue
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