pub fn load_tokens(&self) -> QueryResult<HashMap<TokenId, Token>> {
        let tokens = tokens::table
            .order(tokens::id.asc())
            .load::<DbToken>(self.0.conn())?;
        Ok(tokens
            .into_iter()
            .map(|t| {
                let token: Token = t.into();
                (token.id, token)
            })
            .collect())
    }
/// Loads all the stored tokens from the database.
/// Alongside with the tokens added via `store_token` method, the default `ETH` token
/// is returned.
Loads all the stored tokens from the database.
Alongside with the tokens added via `store_token` method, the default `ETH` token
is returned.
Loads all the stored tokens from the database . Alongside with the tokens added via ` store_token ` method the default ` ETH ` token is returned .
pub fn load_tokens(&self) -> QueryResult<HashMap<TokenId, Token>> {
        let tokens = tokens::table
            .order(tokens::id.asc())
            .load::<DbToken>(self.0.conn())?;
        Ok(tokens
            .into_iter()
            .map(|t| {
                let token: Token = t.into();
                (token.id, token)
            })
            .collect())
    }
pub fn load_tokens ( & self ) -> QueryResult < HashMap < TokenId , Token > > { let tokens = tokens :: table . order ( tokens :: id . asc ( ) ) . load :: < DbToken > ( self . 0 . conn ( ) ) ? ; Ok ( tokens . into_iter ( ) . map ( | t | { let token : Token = t . into ( ) ; ( token . id , token ) } ) . collect ( ) ) }
Loads all the stored tokens from the database.
Loads all the stored tokens from the database .
&self