[−][src]Enum gitlab::api::ApiError
Errors which may occur when using API endpoints.
Variants
The client encountered an error.
The URL failed to parse.
Fields of UrlParse
source: ParseError
The source of the error.
Body data could not be created.
Fields of Body
source: BodyError
The source of the error.
JSON deserialization from GitLab failed.
Fields of Json
source: Error
The source of the error.
GitLab returned an error message.
Fields of Gitlab
msg: String
The error message from GitLab.
GitLab returned an error object.
Fields of GitlabObject
obj: Value
The error object from GitLab.
GitLab returned an HTTP error with JSON we did not recognize.
Fields of GitlabUnrecognized
obj: Value
The full object from GitLab.
Failed to parse an expected data type from JSON.
Fields of DataType
An error with pagination occurred.
Fields of Pagination
source: PaginationError
The source of the error.
Implementations
impl<E> ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
Trait Implementations
impl<E: Debug> Debug for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
impl<E> Display for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
impl<E> Error for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ApiError<RestError>> for GitlabError
[src]
impl<E> From<BodyError> for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
impl<E> From<Error> for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
impl<E> From<PaginationError> for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
fn from(source: PaginationError) -> Self
[src]
impl<E> From<ParseError> for ApiError<E> where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
fn from(source: ParseError) -> Self
[src]
Auto Trait Implementations
impl<E> !RefUnwindSafe for ApiError<E>
impl<E> Send for ApiError<E>
impl<E> Sync for ApiError<E>
impl<E> Unpin for ApiError<E> where
E: Unpin,
E: Unpin,
impl<E> !UnwindSafe for ApiError<E>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,