Trait breez_sdk_core::FiatAPI
source · pub trait FiatAPI: Send + Sync {
// Required methods
fn list_fiat_currencies<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SdkResult<Vec<FiatCurrency>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_fiat_rates<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SdkResult<Vec<Rate>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Trait covering fiat-related functionality
Required Methods§
sourcefn list_fiat_currencies<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SdkResult<Vec<FiatCurrency>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_fiat_currencies<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = SdkResult<Vec<FiatCurrency>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all supported fiat currencies for which there is a known exchange rate.