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

There was an error with the request.

Either the API key or the verification token was invalid.

This account does not have access to the requested service.

The authy user could not be found

You have reached the API usage limit.

There was an internal server error.

The authy service was unavailable. Only returned after the configured retry_count.

There was an IO error.

There was an error deserializing a json object.

We made a request the server didn't like.

We made a request with a bad url

We made a request with a bad url

The server gave an invalid response.

Trait Implementations

impl PartialEq for HelpScoutError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for HelpScoutError
[src]

impl Clone for HelpScoutError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HelpScoutError
[src]

[src]

Formats the value using the given formatter.

impl Error for HelpScoutError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for HelpScoutError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for HelpScoutError
[src]

[src]

Performs the conversion.

impl From<UrlError> for HelpScoutError
[src]

[src]

Performs the conversion.

impl From<Error> for HelpScoutError
[src]

[src]

Performs the conversion.

impl From<Error> for HelpScoutError
[src]

[src]

Performs the conversion.

impl From<Error> for HelpScoutError
[src]

[src]

Performs the conversion.