pub enum PaginationError {
Show 13 variants
PageZero,
PerPageZero,
PageLimitZero,
InvalidPreviousPage,
InvalidNextPage,
InvalidLastPage,
UnexpectedPage,
EmptyPageWithNextPage,
InvalidEntryCount,
PageSizeChanged,
TraversalChanged,
PageLimitExceeded,
Complete,
}Expand description
Pagination validation or transition error.
Variants§
PageZero
Page numbers are one-based.
PerPageZero
Per-page values are one-based.
PageLimitZero
The caller-selected page limit must be nonzero.
InvalidPreviousPage
The previous-page link is not immediately before the current page.
InvalidNextPage
The next-page link is not immediately after the current page.
InvalidLastPage
The last page contradicts the current page or continuation state.
UnexpectedPage
The response page differs from the page the cursor requested.
EmptyPageWithNextPage
A non-terminal empty page advertised another page.
InvalidEntryCount
The decoded entry count contradicts page or total-entry metadata.
PageSizeChanged
Response page size differs from the caller-bound request size.
TraversalChanged
Total entries or last page changed during one traversal.
PageLimitExceeded
Advancing would exceed the caller-selected page limit.
Complete
The cursor already reached its terminal page.
Trait Implementations§
Source§impl Clone for PaginationError
impl Clone for PaginationError
Source§fn clone(&self) -> PaginationError
fn clone(&self) -> PaginationError
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 moreimpl Copy for PaginationError
Source§impl Debug for PaginationError
impl Debug for PaginationError
impl Eq for PaginationError
Source§impl PartialEq for PaginationError
impl PartialEq for PaginationError
impl StructuralPartialEq for PaginationError
Auto Trait Implementations§
impl Freeze for PaginationError
impl RefUnwindSafe for PaginationError
impl Send for PaginationError
impl Sync for PaginationError
impl Unpin for PaginationError
impl UnsafeUnpin for PaginationError
impl UnwindSafe for PaginationError
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