Struct midgard_rs::EarningsInterval
source · pub struct EarningsInterval { /* private fields */ }Implementations§
source§impl EarningsInterval
impl EarningsInterval
pub const fn get_avg_node_count(&self) -> &Decimal
pub const fn get_block_rewards(&self) -> &u64
pub const fn get_bonding_earnings(&self) -> &u64
pub const fn get_earnings(&self) -> &u64
pub const fn get_end_time(&self) -> &DateTime<Utc>
pub const fn get_liquidity_earnings(&self) -> &u64
pub const fn get_liquidity_fees(&self) -> &u64
pub const fn get_pools(&self) -> &EarningsPools
pub const fn get_rune_price_usd(&self) -> &Decimal
pub const fn get_start_time(&self) -> &DateTime<Utc>
Trait Implementations§
source§impl Clone for EarningsInterval
impl Clone for EarningsInterval
source§fn clone(&self) -> EarningsInterval
fn clone(&self) -> EarningsInterval
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 EarningsInterval
impl Debug for EarningsInterval
source§impl Default for EarningsInterval
impl Default for EarningsInterval
source§fn default() -> EarningsInterval
fn default() -> EarningsInterval
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EarningsInterval
impl<'de> Deserialize<'de> for EarningsInterval
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 EarningsInterval
impl RefUnwindSafe for EarningsInterval
impl Send for EarningsInterval
impl Sync for EarningsInterval
impl Unpin for EarningsInterval
impl UnwindSafe for EarningsInterval
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