Enum gitlab::GitlabError
source · #[non_exhaustive]pub enum GitlabError {
UrlParse {
source: ParseError,
},
AuthError {
source: AuthError,
},
Communication {
source: Error,
},
Http {
status: StatusCode,
},
GraphQL {
message: Vec<Error>,
},
NoResponse {},
DataType {
source: Error,
typename: &'static str,
},
Api {
source: ApiError<RestError>,
},
}
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.
UrlParse
Fields
§
source: ParseError
AuthError
Communication
Http
Fields
§
status: StatusCode
GraphQL
NoResponse
DataType
Api
Trait Implementations§
source§impl Debug for GitlabError
impl Debug for GitlabError
source§impl Display for GitlabError
impl Display for GitlabError
source§impl Error for GitlabError
impl Error for GitlabError
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<AuthError> for GitlabError
impl From<AuthError> for GitlabError
source§impl From<Error> for GitlabError
impl From<Error> for GitlabError
source§impl From<ParseError> for GitlabError
impl From<ParseError> for GitlabError
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 GitlabError
impl !RefUnwindSafe for GitlabError
impl Send for GitlabError
impl Sync for GitlabError
impl Unpin for GitlabError
impl !UnwindSafe for GitlabError
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