#[derive(Debug)] pub enum Error { InvalidApiKey, Request(reqwest::Error), Parsing(String), } impl From for Error { fn from(err: serde_json::Error) -> Error { Error::Parsing(err.to_string()) } }