Enum gitlab::api::PaginationError
source · #[non_exhaustive]pub enum PaginationError {
LinkHeader {
source: LinkHeaderParseError,
},
InvalidUrl {
source: ParseError,
},
}
Expand description
Errors which may occur with pagination.
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.
LinkHeader
Fields
§
source: LinkHeaderParseError
The source of the error.
A Link
HTTP header can fail to parse.
InvalidUrl
Fields
§
source: ParseError
The source of the error.
An invalid URL can be returned.
Trait Implementations§
source§impl Debug for PaginationError
impl Debug for PaginationError
source§impl Display for PaginationError
impl Display for PaginationError
source§impl Error for PaginationError
impl Error for PaginationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<LinkHeaderParseError> for PaginationError
impl From<LinkHeaderParseError> for PaginationError
source§fn from(source: LinkHeaderParseError) -> Self
fn from(source: LinkHeaderParseError) -> Self
Converts to this type from the input type.
source§impl<E> From<PaginationError> for ApiError<E>
impl<E> From<PaginationError> for ApiError<E>
source§fn from(source: PaginationError) -> Self
fn from(source: PaginationError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for PaginationError
impl From<ParseError> for PaginationError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PaginationError
impl RefUnwindSafe for PaginationError
impl Send for PaginationError
impl Sync for PaginationError
impl Unpin 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