pub enum GitLabError {
Fetch(JsonGetError),
NoVersion {
package: String,
version: String,
project: String,
available: String,
},
NoFile {
project: String,
package: String,
version: String,
wanted: String,
},
}Variants§
Fetch(JsonGetError)
A failed JSON GET — transport, a non-2xx status, or an undecodable body.
NoVersion
Fields
NoFile
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)>
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()
Source§impl From<JsonGetError> for GitLabError
impl From<JsonGetError> for GitLabError
Source§fn from(source: JsonGetError) -> Self
fn from(source: JsonGetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GitLabError
impl !UnwindSafe for GitLabError
impl Forget for GitLabError
impl Freeze for GitLabError
impl Move for GitLabError
impl Send for GitLabError
impl Sync for GitLabError
impl Unpin for GitLabError
impl UnsafeUnpin 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