pub struct Pager { /* private fields */ }Expand description
A single page request resolved from an optional cursor and a page size.
Paginated tools follow a fetch-one-extra pattern: query size + 1 rows,
then call Self::finalize to trim the extra row and emit a next cursor
when present. Construct with Self::new; read Self::offset /
Self::limit when building the SQL statement.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pager
impl RefUnwindSafe for Pager
impl Send for Pager
impl Sync for Pager
impl Unpin for Pager
impl UnsafeUnpin for Pager
impl UnwindSafe for Pager
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