use crate::error::Result;
domain_handle! {
pub struct CryptoCoin { id, id }
}
impl CryptoCoin {
pub async fn quote(&self, vs_currency: &str) -> Result<crate::models::crypto::CryptoQuote> {
fetch_via_with!(
self,
id,
CRYPTO,
fetch_crypto_quote,
vs_currency,
crate::models::crypto::CryptoQuote
)
}
}