Enum helpscout::HelpScoutError
[−]
[src]
pub enum HelpScoutError { BadRequest(Status), UnauthorizedKey(Status), Forbidden(Status), UserNotFound(Status), TooManyRequests(Status), InternalServerError(Status), ServiceUnavailable, IoError(String), JsonParseError(String), RequestError(String), RequestUrlError(String), RequestUrlEncodeError(String), InvalidServerResponse, }
The error type used by this library.
Variants
BadRequest(Status)
There was an error with the request.
Either the API key or the verification token was invalid.
Forbidden(Status)
This account does not have access to the requested service.
UserNotFound(Status)
The authy user could not be found
TooManyRequests(Status)
You have reached the API usage limit.
InternalServerError(Status)
There was an internal server error.
The authy service was unavailable. Only returned after the configured retry_count
.
IoError(String)
There was an IO error.
JsonParseError(String)
There was an error deserializing a json object.
RequestError(String)
We made a request the server didn't like.
RequestUrlError(String)
We made a request with a bad url
RequestUrlEncodeError(String)
We made a request with a bad url
InvalidServerResponse
The server gave an invalid response.
Trait Implementations
impl PartialEq for HelpScoutError
[src]
fn eq(&self, __arg_0: &HelpScoutError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HelpScoutError) -> bool
[src]
This method tests for !=
.
impl Eq for HelpScoutError
[src]
impl Clone for HelpScoutError
[src]
fn clone(&self) -> HelpScoutError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for HelpScoutError
[src]
impl Error for HelpScoutError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for HelpScoutError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more