Enum page_hunter::ErrorKind
source · pub enum ErrorKind {
FieldValueError(String),
}Expand description
Provides a way to categorize the pagination error.
Variants§
FieldValueError(String)
Raised when a value in a field on the Page is invalid based on the pagination logic.
Implementations§
source§impl ErrorKind
impl ErrorKind
sourcepub fn is_field_value_error(&self) -> bool
pub fn is_field_value_error(&self) -> bool
Check if the ErrorKind is a ErrorKind::FieldValueError.
Trait Implementations§
source§impl From<ErrorKind> for PaginationError
impl From<ErrorKind> for PaginationError
Implementation of From<ErrorKind> for PaginationError.
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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