Enum sauce_api::error::SauceError [−][src]
pub enum SauceError { LinkIsNotImage, HitByCaptcha(YandexCaptchaUrl), UnableToFormat(FmtError), UnableToConvertToString(ToStrError), UnableToConvertToFloat(ParseFloatError), FailedRequest(Error), FailedToParseIntoJson(Error), UnableToRetrieve(&'static str), GenericStr(&'static str), GenericString(String), }
Expand description
The various errors that this API can produce.
Variants
The provided link does not lead to an image file. Or the header does not specify that the Content-Type is an image.
This is jank and always was jank, please stop using it.
If a Yandex search was hit by a captcha, thus preventing the API from doing its job.
Tuple Fields of HitByCaptcha
0: YandexCaptchaUrl
This is jank and always was jank, please stop using it.
Unable to format. See strfmt::FmtError
Tuple Fields of UnableToFormat
0: FmtError
Unable to convert to string. See reqwest::header::ToStrError
Tuple Fields of UnableToConvertToString
0: ToStrError
Unable to convert to float. See std::num::ParseFloatError
Tuple Fields of UnableToConvertToFloat
Failed to send request. See reqwest::Error
Tuple Fields of FailedRequest
0: Error
Failed to parse into json. See serde_json::Error
Tuple Fields of FailedToParseIntoJson
0: Error
Unable to retrieve sauce. A more generic error.
Tuple Fields of UnableToRetrieve
0: &'static str
A very generic error, one which couldn’t be generalized.
Tuple Fields of GenericStr
0: &'static str
A very generic error, one which couldn’t be generalized.
Tuple Fields of GenericString
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.