pub struct Block {Show 15 fields
pub hash: Hash,
pub parent_hash: Hash,
pub uncles_hash: Hash,
pub author: Address,
pub state_root: Hash,
pub transactions_root: Hash,
pub receipts_root: Hash,
pub number: BigInt,
pub gas_used: BigInt,
pub gas_limit: BigInt,
pub timestamp: BigInt,
pub difficulty: BigInt,
pub total_difficulty: BigInt,
pub size: Option<BigInt>,
pub base_fee_per_gas: Option<BigInt>,
}
Expand description
Ethereum block data.
Fields§
§hash: Hash
§parent_hash: Hash
§uncles_hash: Hash
§state_root: Hash
§transactions_root: Hash
§receipts_root: Hash
§number: BigInt
§gas_used: BigInt
§gas_limit: BigInt
§timestamp: BigInt
§difficulty: BigInt
§total_difficulty: BigInt
§size: Option<BigInt>
§base_fee_per_gas: Option<BigInt>
Implementations§
Trait Implementations§
impl Eq for Block
impl StructuralEq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl !Send for Block
impl !Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.