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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more