Struct cfx_rpc_cfx_types::FeeHistoryCacheEntry
source · pub struct FeeHistoryCacheEntry {
pub base_fee_per_gas: u64,
pub gas_used_ratio: f64,
pub gas_used: u64,
pub gas_limit: u64,
pub header_hash: H256,
pub parent_hash: H256,
pub rewards: Vec<u128>,
pub timestamp: u64,
}
Fields§
§base_fee_per_gas: u64
The base fee per gas for this block.
gas_used_ratio: f64
Gas used ratio this block.
gas_used: u64
Gas used by this block.
gas_limit: u64
Gas limit by this block.
header_hash: H256
Hash of the block.
parent_hash: H256
§rewards: Vec<u128>
Approximated rewards for the configured percentiles.
timestamp: u64
The timestamp of the block.
Implementations§
source§impl FeeHistoryCacheEntry
impl FeeHistoryCacheEntry
pub fn from_block<'a, I>( space: Space, pivot_header: &BlockHeader, transactions: I ) -> Self
Trait Implementations§
source§impl Clone for FeeHistoryCacheEntry
impl Clone for FeeHistoryCacheEntry
source§fn clone(&self) -> FeeHistoryCacheEntry
fn clone(&self) -> FeeHistoryCacheEntry
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 moreAuto Trait Implementations§
impl RefUnwindSafe for FeeHistoryCacheEntry
impl Send for FeeHistoryCacheEntry
impl Sync for FeeHistoryCacheEntry
impl Unpin for FeeHistoryCacheEntry
impl UnwindSafe for FeeHistoryCacheEntry
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