Struct ethers_etherscan::gas::GasOracle
source · pub struct GasOracle {
pub safe_gas_price: U256,
pub propose_gas_price: U256,
pub fast_gas_price: U256,
pub last_block: u64,
pub suggested_base_fee: U256,
pub gas_used_ratio: Vec<f64>,
}
Fields§
§safe_gas_price: U256
Safe Gas Price in wei
propose_gas_price: U256
Propose Gas Price in wei
fast_gas_price: U256
Fast Gas Price in wei
last_block: u64
Last Block
suggested_base_fee: U256
Suggested Base Fee in wei
gas_used_ratio: Vec<f64>
Gas Used Ratio
Trait Implementations§
source§impl<'de> Deserialize<'de> for GasOracle
impl<'de> Deserialize<'de> for GasOracle
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 RefUnwindSafe for GasOracle
impl Send for GasOracle
impl Sync for GasOracle
impl Unpin for GasOracle
impl UnwindSafe for GasOracle
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