#[non_exhaustive]pub struct Pool {
pub address: String,
pub lt: String,
pub total_supply: String,
pub pool_type: String,
pub trade_fee: String,
pub assets: Vec<PoolAsset>,
pub last_price: Option<String>,
pub reserves: Vec<String>,
pub stats: Stats,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: String§lt: String§total_supply: String§pool_type: String§trade_fee: String§assets: Vec<PoolAsset>§last_price: Option<String>§reserves: Vec<String>§stats: StatsImplementations§
Source§impl Pool
impl Pool
Sourcepub fn with_address(self, value: String) -> Self
pub fn with_address(self, value: String) -> Self
Sets the address field of this struct.
Sourcepub fn with_total_supply(self, value: String) -> Self
pub fn with_total_supply(self, value: String) -> Self
Sets the total_supply field of this struct.
Sourcepub fn with_pool_type(self, value: String) -> Self
pub fn with_pool_type(self, value: String) -> Self
Sets the pool_type field of this struct.
Sourcepub fn with_trade_fee(self, value: String) -> Self
pub fn with_trade_fee(self, value: String) -> Self
Sets the trade_fee field of this struct.
Sourcepub fn with_assets(self, value: Vec<PoolAsset>) -> Self
pub fn with_assets(self, value: Vec<PoolAsset>) -> Self
Sets the assets field of this struct.
Sourcepub fn with_last_price(self, value: String) -> Self
pub fn with_last_price(self, value: String) -> Self
Sets the last_price field of this struct.
Sourcepub fn with_reserves(self, value: Vec<String>) -> Self
pub fn with_reserves(self, value: Vec<String>) -> Self
Sets the reserves field of this struct.
Sourcepub fn with_stats(self, value: Stats) -> Self
pub fn with_stats(self, value: Stats) -> Self
Sets the stats field of this struct.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pool
impl<'de> Deserialize<'de> for Pool
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
impl Eq for Pool
impl StructuralPartialEq for Pool
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
impl UnwindSafe for Pool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.