Struct Block
pub struct Block {Show 19 fields
pub number: BlockNumber,
pub hash: BlockHash,
pub parent_hash: BlockHash,
pub nonce: FixedBytes<8>,
pub sha3_uncles: Hash,
pub logs_bloom: FixedBytes<256>,
pub transactions_root: Hash,
pub state_root: Hash,
pub receipts_root: Hash,
pub miner: Address,
pub difficulty: U256,
pub total_difficulty: U256,
pub extra_data: Bytes,
pub size: U256,
pub gas_limit: U256,
pub gas_used: U256,
pub timestamp: U256,
pub transactions: Vec<Hash>,
pub uncles: Vec<Hash>,
}Fields§
§number: BlockNumber§hash: BlockHash§parent_hash: BlockHash§nonce: FixedBytes<8>§sha3_uncles: Hash§logs_bloom: FixedBytes<256>§transactions_root: Hash§state_root: Hash§receipts_root: Hash§miner: Address§difficulty: U256§total_difficulty: U256§extra_data: Bytes§size: U256§gas_limit: U256§gas_used: U256§timestamp: U256§transactions: Vec<Hash>§uncles: Vec<Hash>Trait Implementations§
§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
§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 !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