Struct ethers_middleware::gas_oracle::blocknative::BlockPrice
source · pub struct BlockPrice {
pub block_number: u64,
pub estimated_transaction_count: u64,
pub base_fee_per_gas: f64,
pub estimated_prices: Vec<GasEstimate>,
}Fields§
§block_number: u64§estimated_transaction_count: u64§base_fee_per_gas: f64§estimated_prices: Vec<GasEstimate>Trait Implementations§
source§impl Clone for BlockPrice
impl Clone for BlockPrice
source§fn clone(&self) -> BlockPrice
fn clone(&self) -> BlockPrice
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 BlockPrice
impl Debug for BlockPrice
source§impl<'de> Deserialize<'de> for BlockPrice
impl<'de> Deserialize<'de> for BlockPrice
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
source§impl PartialEq<BlockPrice> for BlockPrice
impl PartialEq<BlockPrice> for BlockPrice
source§fn eq(&self, other: &BlockPrice) -> bool
fn eq(&self, other: &BlockPrice) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BlockPrice
Auto Trait Implementations§
impl RefUnwindSafe for BlockPrice
impl Send for BlockPrice
impl Sync for BlockPrice
impl Unpin for BlockPrice
impl UnwindSafe for BlockPrice
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