Enum strava::error::ApiError [] [src]

pub enum ApiError {
    InvalidAccessToken,
    Http(Error),
    InvalidJson(DecoderError),
}

Errors returned by strava API methods

Variants

The given access token has insufficient permission for accessing the requested resource.

Error in the underlying http implementation

Failed to decode a JSON response from the Strava servers

Trait Implementations

impl Debug for ApiError
[src]

[src]

Formats the value using the given formatter.

impl Error for ApiError
[src]

[src]

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

[src]

A short description of the error. Read more

impl Display for ApiError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<DecoderError> for ApiError
[src]

[src]

Performs the conversion.

impl From<Error> for ApiError
[src]

[src]

Performs the conversion.