Struct midgard_rs::Pool
source · pub struct Pool { /* private fields */ }Implementations§
source§impl Pool
impl Pool
pub const fn get_annual_percentage_rate(&self) -> &Decimal
pub fn get_asset(&self) -> &str
pub const fn get_asset_depth(&self) -> &u64
pub const fn get_asset_price(&self) -> &Decimal
pub const fn get_asset_price_usd(&self) -> &Decimal
pub const fn get_earnings(&self) -> &u64
pub const fn get_earnings_annual_as_percent_of_depth(&self) -> &Decimal
pub const fn get_liquidity_units(&self) -> &u64
pub const fn get_lp_luvi(&self) -> &Decimal
pub const fn get_native_decimal(&self) -> &i64
pub const fn get_pool_apy(&self) -> &Decimal
pub const fn get_rune_depth(&self) -> &u64
pub const fn get_savers_apr(&self) -> &Decimal
pub const fn get_savers_depth(&self) -> &u64
pub const fn get_savers_units(&self) -> &u64
pub const fn get_status(&self) -> &PoolStatus
pub const fn get_synth_supply(&self) -> &u64
pub const fn get_synth_units(&self) -> &u64
pub const fn get_total_collateral(&self) -> &u64
pub const fn get_total_debt_tor(&self) -> &u64
pub const fn get_units(&self) -> &u64
pub const fn get_volume_24h(&self) -> &u64
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
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin 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