#[non_exhaustive]pub struct MapReadStreamRequest {
pub channel: String,
pub since_offset: u64,
pub since_epoch: String,
pub limit: i32,
pub reverse: bool,
}Expand description
MapReadStreamRequest reads the change stream of a map channel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel: StringThe name of the map channel. Required.
since_offset: u64since_offset returns entries after this offset, used with
since_epoch.
since_epoch: StringThe epoch of the since position. It must match the current stream epoch.
limit: i32The maximum number of entries: -1 means no limit, 0 returns only the stream position.
reverse: boolreverse returns entries newest first.
Implementations§
Source§impl MapReadStreamRequest
impl MapReadStreamRequest
Sourcepub fn new(channel: impl Into<String>) -> Self
pub fn new(channel: impl Into<String>) -> Self
Returns a MapReadStreamRequest with its required field: channel. Set the others with the methods below.
Sourcepub fn since_offset(self, value: u64) -> Self
pub fn since_offset(self, value: u64) -> Self
Sets since_offset.
Sourcepub fn since_epoch(self, value: impl Into<String>) -> Self
pub fn since_epoch(self, value: impl Into<String>) -> Self
Sets since_epoch.
Trait Implementations§
Source§impl Clone for MapReadStreamRequest
impl Clone for MapReadStreamRequest
Source§impl Debug for MapReadStreamRequest
impl Debug for MapReadStreamRequest
Source§impl<'de> Deserialize<'de> for MapReadStreamRequest
impl<'de> Deserialize<'de> for MapReadStreamRequest
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
Source§impl Request for MapReadStreamRequest
impl Request for MapReadStreamRequest
Auto Trait Implementations§
impl Freeze for MapReadStreamRequest
impl RefUnwindSafe for MapReadStreamRequest
impl Send for MapReadStreamRequest
impl Sync for MapReadStreamRequest
impl Unpin for MapReadStreamRequest
impl UnsafeUnpin for MapReadStreamRequest
impl UnwindSafe for MapReadStreamRequest
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