Enum weeb_api::Error
[−]
[src]
pub enum Error { Json(JsonError), NoParamsSpecified, NoUploadSpecified, Reqwest(ReqwestError), ReqwestBad(Box<ReqwestResponse>), ReqwestInvalid(Box<ReqwestResponse>), ReqwestParse(ReqwestUrlError), ReqwestUnauthorized(Box<ReqwestResponse>), }
An error type to compose a singular error enum between various dependencies' errors.
Variants
Json(JsonError)
An error from the serde_json
crate.
A potential reason for this is when there is an error deserializing a JSON response body.
NoParamsSpecified
An error indicating that no image params were supplied.
NoUploadSpecified
An error indicating that no upload params were supplied.
Reqwest(ReqwestError)
An error from the reqwest
crate when it is enabled.
ReqwestBad(Box<ReqwestResponse>)
An error indicating a bad request when using reqwest
.
ReqwestInvalid(Box<ReqwestResponse>)
An error indicating an invalid request when using reqwest
.
ReqwestParse(ReqwestUrlError)
An error indicating a parsing issue when using reqwest
.
An error indicating an unathorized request when using reqwest
.
Trait Implementations
impl Debug for Error
[src]
impl From<JsonError> for Error
[src]
impl From<ReqwestError> for Error
[src]
fn from(err: ReqwestError) -> Self
[src]
Performs the conversion.
impl From<ReqwestUrlError> for Error
[src]
fn from(err: ReqwestUrlError) -> Self
[src]
Performs the conversion.
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
Formats the value using the given formatter. Read more