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 StructuralPartialEq for Block
Auto Trait Implementationsยง
impl Freeze for Block
impl RefUnwindSafe for Block
impl !Send for Block
impl !Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.