pub struct Paginated<T, C = String> {
pub items: Vec<T>,
pub next_cursor: Option<C>,
}Expand description
A page of results plus the opaque cursor for the page that follows.
next_cursor is Some only when the backend had at least one more row
beyond this page; None marks the end of the walk.
Fields§
§items: Vec<T>The items that survived the keep-filter, in page order.
next_cursor: Option<C>Cursor for the next page, or None at the end of the result set.
Trait Implementations§
impl<T: Eq, C: Eq> Eq for Paginated<T, C>
Source§impl<T: PartialEq, C: PartialEq> PartialEq for Paginated<T, C>
impl<T: PartialEq, C: PartialEq> PartialEq for Paginated<T, C>
impl<T: PartialEq, C: PartialEq> StructuralPartialEq for Paginated<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for Paginated<T, C>where
C: Freeze,
impl<T, C> RefUnwindSafe for Paginated<T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for Paginated<T, C>
impl<T, C> Sync for Paginated<T, C>
impl<T, C> Unpin for Paginated<T, C>
impl<T, C> UnsafeUnpin for Paginated<T, C>where
C: UnsafeUnpin,
impl<T, C> UnwindSafe for Paginated<T, C>where
C: UnwindSafe,
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.