Struct swapkit_rs::GasHistory
source · pub struct GasHistory { /* private fields */ }Implementations§
source§impl GasHistory
impl GasHistory
pub const fn get_last_timestamp(&self) -> &Decimal
pub const fn get_chain_id(&self) -> &String
pub const fn get_unit_name(&self) -> &String
pub const fn get_history(&self) -> &Vec<GasHistoryItem>
pub const fn get_average_24h(&self) -> &Decimal
pub const fn get_average_7d(&self) -> &Decimal
Trait Implementations§
source§impl Clone for GasHistory
impl Clone for GasHistory
source§fn clone(&self) -> GasHistory
fn clone(&self) -> GasHistory
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 GasHistory
impl Debug for GasHistory
source§impl<'de> Deserialize<'de> for GasHistory
impl<'de> Deserialize<'de> for GasHistory
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 GasHistory
impl RefUnwindSafe for GasHistory
impl Send for GasHistory
impl Sync for GasHistory
impl Unpin for GasHistory
impl UnwindSafe for GasHistory
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