pub struct PagedResponse<E: EntityKind> { /* private fields */ }Expand description
PagedResponse
Public cursor-pagination payload for load queries.
The next_cursor token is opaque and must be treated as an uninterpreted string.
Ordering is deterministic for each request under the query’s canonical order.
Continuation is best-effort and forward-only over live state.
Pagination is not snapshot-isolated: no snapshot/version is pinned across requests, so
concurrent writes may shift boundaries.
Implementations§
Source§impl<E: EntityKind> PagedResponse<E>
impl<E: EntityKind> PagedResponse<E>
pub fn items(&self) -> &[E]
pub fn next_cursor(&self) -> Option<&str>
pub fn into_items(self) -> Vec<E>
pub fn into_next_cursor(self) -> Option<String>
Auto Trait Implementations§
impl<E> Freeze for PagedResponse<E>
impl<E> RefUnwindSafe for PagedResponse<E>where
E: RefUnwindSafe,
impl<E> Send for PagedResponse<E>where
E: Send,
impl<E> Sync for PagedResponse<E>where
E: Sync,
impl<E> Unpin for PagedResponse<E>where
E: Unpin,
impl<E> UnsafeUnpin for PagedResponse<E>
impl<E> UnwindSafe for PagedResponse<E>where
E: 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