Struct rustis::commands::StreamEntry
source · pub struct StreamEntry<V>where
V: PrimitiveResponse,{
pub stream_id: String,
pub items: HashMap<String, V>,
}
Expand description
Result for the xrange
and other associated commands.
Fields§
§stream_id: String
The stream Id
items: HashMap<String, V>
entries with their fields and values in the exact same
order as xadd
added them.
Trait Implementations§
source§impl<'de, V> Deserialize<'de> for StreamEntry<V>where
V: PrimitiveResponse + Deserialize<'de>,
impl<'de, V> Deserialize<'de> for StreamEntry<V>where
V: PrimitiveResponse + Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<V> Freeze for StreamEntry<V>
impl<V> RefUnwindSafe for StreamEntry<V>where
V: RefUnwindSafe,
impl<V> Send for StreamEntry<V>where
V: Send,
impl<V> Sync for StreamEntry<V>where
V: Sync,
impl<V> Unpin for StreamEntry<V>where
V: Unpin,
impl<V> UnwindSafe for StreamEntry<V>where
V: UnwindSafe,
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