Enum wikipedia::Error [] [src]

pub enum Error {
    HTTPError,
    IOError(Error),
    JSONError(Error),
    JSONPathError,
    InvalidParameter(String),
}

Wikipedia failed to fetch some information

Variants

HTTPError

Some error communicating with the server

IOError

Error reading response

JSONError

Failed to parse JSON response

JSONPathError

Missing required keys in the JSON response

InvalidParameter

One of the parameters provided (identified by String) is invalid

Trait Implementations

impl From<Error> for Error

fn from(_: Error) -> Self

impl From<Error> for Error

fn from(e: Error) -> Self

impl From<Error> for Error

fn from(e: Error) -> Self

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result