pub struct EventPage {
pub events: Vec<StoredEvent>,
pub next_cursor: Option<EventId>,
}Expand description
Page of events plus the cursor needed to continue reading.
Fields§
§events: Vec<StoredEvent>§next_cursor: Option<EventId>Inclusive from_event_id to pass into the next read to resume.
None when the requested range was fully drained.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventPage
impl<'de> Deserialize<'de> for EventPage
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
impl Eq for EventPage
impl StructuralPartialEq for EventPage
Auto Trait Implementations§
impl Freeze for EventPage
impl RefUnwindSafe for EventPage
impl Send for EventPage
impl Sync for EventPage
impl Unpin for EventPage
impl UnsafeUnpin for EventPage
impl UnwindSafe for EventPage
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