#[non_exhaustive]pub struct ViewPageResult {
pub events: Vec<UnframedViewNotification>,
pub next_cursor: Option<String>,
pub resolved_anchor: Option<ViewPageResolvedAnchor>,
}Expand description
view/page result.
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.events: Vec<UnframedViewNotification>The page’s events, always ascending by viewCursor in both
directions. Durable-sourced only; pages are contiguous and can never
skip a cursor.
next_cursor: Option<String>The anchor for the next page in the same direction: forward, the last
event’s cursor; backward, the first’s. null at the end of the view
in that direction — never omitted.
resolved_anchor: Option<ViewPageResolvedAnchor>The resolution echo, present exactly when the request used anchor.
Trait Implementations§
Source§impl Clone for ViewPageResult
impl Clone for ViewPageResult
Source§impl Debug for ViewPageResult
impl Debug for ViewPageResult
Source§impl<'de> Deserialize<'de> for ViewPageResult
impl<'de> Deserialize<'de> for ViewPageResult
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 ViewPageResult
Source§impl PartialEq for ViewPageResult
impl PartialEq for ViewPageResult
Source§impl Serialize for ViewPageResult
impl Serialize for ViewPageResult
impl StructuralPartialEq for ViewPageResult
Auto Trait Implementations§
impl Forget for ViewPageResult
impl Freeze for ViewPageResult
impl Move for ViewPageResult
impl RefUnwindSafe for ViewPageResult
impl Send for ViewPageResult
impl Sync for ViewPageResult
impl Unpin for ViewPageResult
impl UnsafeUnpin for ViewPageResult
impl UnwindSafe for ViewPageResult
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