1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! Defines the `Error` type we use in this library (error-chain). error_chain! { types { Error, ErrorKind, ResultExt; } links { } foreign_links { Io(::std::io::Error); Reqwest(::reqwest::Error); SerdeJson(::serde_json::Error); FromUtf8(::std::string::FromUtf8Error); } errors { } }