pub enum JsonGetError {
Transport(HttpError),
Status {
url: String,
status: u16,
},
Decode(Error),
}Expand description
A build-time JSON GET that failed: the transport did, the server answered with a non-2xx, or the body was not the document expected.
Kept apart from HttpError because get deliberately treats a status
as data — a resolver soft-skips a 404 for a platform a release doesn’t
ship. get_json is the other half of that split: the callers who want a
document and have nothing to do with a status that isn’t 200.
Variants§
Trait Implementations§
Source§impl Debug for JsonGetError
impl Debug for JsonGetError
Source§impl Display for JsonGetError
impl Display for JsonGetError
Source§impl Error for JsonGetError
impl Error for JsonGetError
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<Error> for JsonGetError
impl From<Error> for JsonGetError
Source§impl From<HttpError> for JsonGetError
impl From<HttpError> for JsonGetError
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 JsonGetError
impl !UnwindSafe for JsonGetError
impl Freeze for JsonGetError
impl Send for JsonGetError
impl Sync for JsonGetError
impl Unpin for JsonGetError
impl UnsafeUnpin for JsonGetError
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