Enum strava::error::ApiError
[−]
[src]
pub enum ApiError { InvalidAccessToken, Http(Error), InvalidJson(DecoderError), }
Errors returned by strava API methods
Variants
InvalidAccessToken
The given access token has insufficient permission for accessing the requested resource.
Http(Error)
Error in the underlying http implementation
InvalidJson(DecoderError)
Failed to decode a JSON response from the Strava servers
Trait Implementations
impl Debug for ApiError
[src]
impl Error for ApiError
[src]
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
fn description(&self) -> &str
[src]
A short description of the error. Read more
impl Display for ApiError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<DecoderError> for ApiError
[src]
fn from(e: DecoderError) -> ApiError
[src]
Performs the conversion.