Skip to main content

coins_rs/
errors.rs

1
2#[derive(Clone, Debug,)]
3pub enum Error {
4  CurrencyMismatch,
5  CouldNotGetExchangeRate
6}
7
8impl std::convert::From<reqwest::Error> for Error {
9  fn from(_err: reqwest::Error) -> Error {
10    Error::CouldNotGetExchangeRate
11  }
12}