#[non_exhaustive]pub enum Pagination {
Pages,
Simple,
Cursor,
}Expand description
How a table pages through its rows.
use tablo_core::{Pagination, Table, TextColumn, lens};
// A log too large to count on every page.
Table::new(TextColumn::new(lens!(Event.name))).pagination(Pagination::Cursor);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pages
Numbered pages, ?page=3: “Showing 51–75 of 312”, the page links, and Previous and
Next. Each page counts the result set, one more query.
Simple
Previous and Next by page number, without a count: “Page 3”.
Cursor
Previous and Next by row cursor, ?after=…: neither counts nor skips rows, so it pages
a large or fast-changing table without drifting.
Trait Implementations§
Source§impl Clone for Pagination
impl Clone for Pagination
impl Copy for Pagination
Source§impl Debug for Pagination
impl Debug for Pagination
Source§impl Default for Pagination
impl Default for Pagination
impl Eq for Pagination
Source§impl PartialEq for Pagination
impl PartialEq for Pagination
impl StructuralPartialEq for Pagination
Auto Trait Implementations§
impl Forget for Pagination
impl Freeze for Pagination
impl RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnsafeUnpin for Pagination
impl UnwindSafe for Pagination
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.