pub struct StreamEntry {
pub stream: String,
pub id: EntryId,
pub values: HashMap<String, RedisValue>,
}Expand description
Structure that wraps a entry received on XREAD/XREADGROUP request.
Fields§
§stream: StringStream name
id: EntryIdStream entry id is a simple string “milliseconds-id”
values: HashMap<String, RedisValue>Note Redis allows to use key as a binary Bulk String but in the library it is forbidden for easy of use API. Value may be any of the RedisValue types
Trait Implementations§
Source§impl Clone for StreamEntry
impl Clone for StreamEntry
Source§fn clone(&self) -> StreamEntry
fn clone(&self) -> StreamEntry
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 moreSource§impl Debug for StreamEntry
impl Debug for StreamEntry
Source§impl PartialEq for StreamEntry
impl PartialEq for StreamEntry
impl StructuralPartialEq for StreamEntry
Auto Trait Implementations§
impl Freeze for StreamEntry
impl RefUnwindSafe for StreamEntry
impl Send for StreamEntry
impl Sync for StreamEntry
impl Unpin for StreamEntry
impl UnwindSafe for StreamEntry
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