Struct midgard_rs::PoolStatistics
source · pub struct PoolStatistics { /* private fields */ }Implementations§
source§impl PoolStatistics
impl PoolStatistics
pub const fn get_add_asset_liquidity_volume(&self) -> &u64
pub const fn get_add_liquidity_count(&self) -> &u64
pub const fn get_add_liquidity_volume(&self) -> &u64
pub const fn get_add_rune_liquidity_volume(&self) -> &u64
pub const fn get_annual_percentage_rate(&self) -> &Option<Decimal>
pub fn get_asset(&self) -> &str
pub const fn get_asset_depth(&self) -> &u64
pub const fn get_asset_price(&self) -> &Option<Decimal>
pub const fn get_asset_price_usd(&self) -> &Option<Decimal>
pub const fn get_average_slip(&self) -> &Option<Decimal>
pub const fn get_earnings(&self) -> &u64
pub const fn get_earnings_annual_as_percent_of_depth(&self) -> &Option<Decimal>
pub const fn get_liquidity_units(&self) -> &u64
pub const fn get_pool_apy(&self) -> &Option<Decimal>
pub const fn get_rune_depth(&self) -> &u64
pub const fn get_savers_apr(&self) -> &Option<Decimal>
pub const fn get_status(&self) -> &PoolStatus
pub const fn get_swap_count(&self) -> &u64
pub const fn get_swap_volume(&self) -> &u64
pub const fn get_synth_supply(&self) -> &u64
pub const fn get_synth_units(&self) -> &u64
pub const fn get_to_asset_average_slip(&self) -> &Option<Decimal>
pub const fn get_to_asset_count(&self) -> &u64
pub const fn get_to_asset_fees(&self) -> &u64
pub const fn get_to_asset_volume(&self) -> &u64
pub const fn get_to_rune_average_slip(&self) -> &Option<Decimal>
pub const fn get_to_rune_count(&self) -> &u64
pub const fn get_to_rune_fees(&self) -> &u64
pub const fn get_to_rune_volume(&self) -> &u64
pub const fn get_total_fees(&self) -> &u64
pub const fn get_unique_member_count(&self) -> &u64
pub const fn get_unique_swapper_count(&self) -> &u64
pub const fn get_units(&self) -> &u64
pub const fn get_withdraw_asset_volume(&self) -> &u64
pub const fn get_withdraw_count(&self) -> &u64
pub const fn get_withdraw_rune_volume(&self) -> &u64
pub const fn get_withdraw_volume(&self) -> &u64
Trait Implementations§
source§impl Clone for PoolStatistics
impl Clone for PoolStatistics
source§fn clone(&self) -> PoolStatistics
fn clone(&self) -> PoolStatistics
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 PoolStatistics
impl Debug for PoolStatistics
source§impl<'de> Deserialize<'de> for PoolStatistics
impl<'de> Deserialize<'de> for PoolStatistics
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 PoolStatistics
impl RefUnwindSafe for PoolStatistics
impl Send for PoolStatistics
impl Sync for PoolStatistics
impl Unpin for PoolStatistics
impl UnwindSafe for PoolStatistics
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