coins_rs/
traits.rs

1use crate::currency::Currency;
2use crate::errors::Error;
3
4pub trait ExchangeRate {
5    fn exchange_rate(self, from: Currency, to: Currency) -> Result<f64, Error>;
6}