Struct midgard_rs::SwapMeta
source · pub struct SwapMeta { /* private fields */ }Implementations§
source§impl SwapMeta
impl SwapMeta
pub const fn get_average_slip(&self) -> &Decimal
pub const fn get_end_time(&self) -> &DateTime<Utc>
pub const fn get_rune_price_usd(&self) -> &Decimal
pub const fn get_start_time(&self) -> &DateTime<Utc>
pub const fn get_synth_mint_average_slip(&self) -> &Decimal
pub const fn get_synth_mint_count(&self) -> &u64
pub const fn get_synth_mint_fees(&self) -> &u64
pub const fn get_synth_mint_volume(&self) -> &u64
pub const fn get_synth_mint_volume_usd(&self) -> &Option<u64>
pub const fn get_synth_redeem_average_slip(&self) -> &Decimal
pub const fn get_synth_redeem_count(&self) -> &u64
pub const fn get_synth_redeem_fees(&self) -> &u64
pub const fn get_synth_redeem_volume(&self) -> &u64
pub const fn get_synth_redeem_volume_usd(&self) -> &Option<u64>
pub const fn get_to_asset_average_slip(&self) -> &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_asset_volume_usd(&self) -> &Option<u64>
pub const fn get_to_rune_average_slip(&self) -> &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_to_rune_volume_usd(&self) -> &Option<u64>
pub const fn get_total_count(&self) -> &u64
pub const fn get_total_fees(&self) -> &u64
pub const fn get_total_volume(&self) -> &u64
pub const fn get_total_volume_usd(&self) -> &Option<u64>
Trait Implementations§
source§impl<'de> Deserialize<'de> for SwapMeta
impl<'de> Deserialize<'de> for SwapMeta
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 SwapMeta
impl RefUnwindSafe for SwapMeta
impl Send for SwapMeta
impl Sync for SwapMeta
impl Unpin for SwapMeta
impl UnwindSafe for SwapMeta
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