pub enum PaginatorError {
InvalidPage(u32),
InvalidPerPage(u32),
SerializationError(String),
Custom(String),
}Expand description
Errors that can occur during pagination
Variants§
InvalidPage(u32)
Invalid page number (must be >= 1)
InvalidPerPage(u32)
Invalid per_page value (must be between 1 and max limit)
SerializationError(String)
Serialization error
Custom(String)
Custom error with message
Trait Implementations§
Source§impl Debug for PaginatorError
impl Debug for PaginatorError
Source§impl Display for PaginatorError
impl Display for PaginatorError
Source§impl Error for PaginatorError
impl Error for PaginatorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PaginatorError
impl RefUnwindSafe for PaginatorError
impl Send for PaginatorError
impl Sync for PaginatorError
impl Unpin for PaginatorError
impl UnwindSafe for PaginatorError
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