Struct so_defi_config::whirlpool::Whirlpools
source · pub struct Whirlpools {
pub whirlpools: Vec<Whirlpool>,
}
Fields§
§whirlpools: Vec<Whirlpool>
Implementations§
source§impl Whirlpools
impl Whirlpools
pub async fn new() -> Result<Self>
sourcepub async fn guess_names(&mut self) -> Result<()>
pub async fn guess_names(&mut self) -> Result<()>
attempts to fill in the missing pool and farm name information using the solana token list to map coin/pc mints -> names
pub fn pool_by_address(&self, address: &str) -> Result<Whirlpool>
pub fn pool_by_name(&self, name: &str) -> Result<Vec<Whirlpool>>
Trait Implementations§
source§impl Clone for Whirlpools
impl Clone for Whirlpools
source§fn clone(&self) -> Whirlpools
fn clone(&self) -> Whirlpools
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Whirlpools
impl Debug for Whirlpools
source§impl Default for Whirlpools
impl Default for Whirlpools
source§fn default() -> Whirlpools
fn default() -> Whirlpools
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Whirlpools
impl<'de> Deserialize<'de> for Whirlpools
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Whirlpools> for Whirlpools
impl PartialEq<Whirlpools> for Whirlpools
source§fn eq(&self, other: &Whirlpools) -> bool
fn eq(&self, other: &Whirlpools) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.