pub struct GasPrice {
pub standard: Option<u64>,
pub fast: Option<u64>,
pub fastest: Option<u64>,
pub last_updated: Option<u64>,
}Expand description
Gas price information for a single chain
Gas prices are returned as integers in wei.
Fields§
§standard: Option<u64>Standard gas price (wei)
fast: Option<u64>Fast gas price (wei)
fastest: Option<u64>Fastest gas price (wei)
last_updated: Option<u64>Last updated timestamp (unix seconds)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GasPrice
impl<'de> Deserialize<'de> for GasPrice
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 GasPrice
impl RefUnwindSafe for GasPrice
impl Send for GasPrice
impl Sync for GasPrice
impl Unpin for GasPrice
impl UnwindSafe for GasPrice
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