pub trait CurrencyPlugin: Send + Sync {
// Required methods
fn code(&self) -> &str;
fn symbol(&self) -> &str;
fn name(&self) -> &str;
fn decimals(&self) -> u8;
fn meta(&self) -> &PluginMeta;
fn rate(&self) -> Option<(f64, String)>;
}Expand description
Trait for currency plugins that provide exchange rates.
Required Methods§
Sourcefn meta(&self) -> &PluginMeta
fn meta(&self) -> &PluginMeta
Plugin metadata.