Skip to main content

BindingStore

Trait BindingStore 

Source
pub trait BindingStore: Send {
    // Required methods
    fn get(&self, symbol: &str, chain: Option<&str>) -> Option<TokenInfo>;
    fn all(&self, symbol: &str) -> Vec<TokenInfo>;
    fn save(&mut self, candidate: &Candidate, venue: Option<&str>) -> Result<()>;
}
Expand description

The saved bindings.

Required Methods§

Source

fn get(&self, symbol: &str, chain: Option<&str>) -> Option<TokenInfo>

Source

fn all(&self, symbol: &str) -> Vec<TokenInfo>

Every saved binding for symbol, on any chain.

Source

fn save(&mut self, candidate: &Candidate, venue: Option<&str>) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BindingStore for TokenAliases

Source§

fn get(&self, symbol: &str, chain: Option<&str>) -> Option<TokenInfo>

Source§

fn all(&self, symbol: &str) -> Vec<TokenInfo>

Source§

fn save(&mut self, c: &Candidate, venue: Option<&str>) -> Result<()>

Implementors§