pub struct StreamId {
pub id: String,
pub map: HashMap<String, Value>,
pub milliseconds_elapsed_from_delivery: Option<usize>,
pub delivered_count: Option<usize>,
}Expand description
Represents a stream id and its field/values as a HashMap
Also contains optional PEL information if the message was fetched with XREADGROUP with a claim option
Fields§
§id: StringThe stream id (entry ID) of this particular message.
map: HashMap<String, Value>All fields in this message, associated with their respective values.
milliseconds_elapsed_from_delivery: Option<usize>The number of milliseconds that elapsed since the last time this entry was delivered to a consumer.
delivered_count: Option<usize>The number of times this entry was delivered.
Implementations§
Trait Implementations§
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnwindSafe for StreamId
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