Skip to main content

PaginationError

Enum PaginationError 

Source
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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for PaginationError

Source§

impl Debug for PaginationError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for PaginationError

Source§

impl PartialEq for PaginationError

Source§

fn eq(&self, other: &PaginationError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PaginationError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.