pub struct StreamRange {
    pub start: String,
    pub end: String,
    pub count: Option<u64>,
}Expand description
Stream range options for XRANGE and XREVRANGE
Fields§
§start: StringStart ID (inclusive)
end: StringEnd ID (inclusive)
count: Option<u64>Maximum number of entries to return
Implementations§
Source§impl StreamRange
 
impl StreamRange
Sourcepub fn with_count(self, count: u64) -> Self
 
pub fn with_count(self, count: u64) -> Self
Set the maximum number of entries to return
Trait Implementations§
Source§impl Clone for StreamRange
 
impl Clone for StreamRange
Source§fn clone(&self) -> StreamRange
 
fn clone(&self) -> StreamRange
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 moreAuto Trait Implementations§
impl Freeze for StreamRange
impl RefUnwindSafe for StreamRange
impl Send for StreamRange
impl Sync for StreamRange
impl Unpin for StreamRange
impl UnwindSafe for StreamRange
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