pub struct CursorPage<M> {
pub items: Vec<M>,
pub next: Option<String>,
pub previous: Option<String>,
}Expand description
One page of a QuerySet::cursor_page result.
Pass next to QuerySet::after for the following page
and previous to QuerySet::before for the one
before. There is no total: counting is a separate query.
Fields§
§items: Vec<M>Rows of this page, in the queryset’s ordering.
next: Option<String>Cursor for the page after this one; None on the last page.
previous: Option<String>Cursor for the page before this one; None on the first page.
Trait Implementations§
Source§impl<M: Clone> Clone for CursorPage<M>
impl<M: Clone> Clone for CursorPage<M>
Source§fn clone(&self) -> CursorPage<M>
fn clone(&self) -> CursorPage<M>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug> Debug for CursorPage<M>
impl<M: Debug> Debug for CursorPage<M>
Source§impl<M: PartialEq> PartialEq for CursorPage<M>
impl<M: PartialEq> PartialEq for CursorPage<M>
impl<M: PartialEq> StructuralPartialEq for CursorPage<M>
Auto Trait Implementations§
impl<M> Freeze for CursorPage<M>
impl<M> RefUnwindSafe for CursorPage<M>where
M: RefUnwindSafe,
impl<M> Send for CursorPage<M>where
M: Send,
impl<M> Sync for CursorPage<M>where
M: Sync,
impl<M> Unpin for CursorPage<M>where
M: Unpin,
impl<M> UnsafeUnpin for CursorPage<M>
impl<M> UnwindSafe for CursorPage<M>where
M: 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