pub struct Block {Show 21 fields
pub base_fee_per_gas: String,
pub difficulty: String,
pub extra_data: String,
pub gas_limit: String,
pub gas_used: String,
pub hash: String,
pub logs_bloom: String,
pub miner: String,
pub mix_hash: String,
pub nonce: String,
pub number: String,
pub parent_hash: String,
pub receipts_root: String,
pub sha3uncles: Option<String>,
pub size: String,
pub state_root: String,
pub timestamp: String,
pub total_difficulty: String,
pub transactions: Vec<Transaction>,
pub transactions_root: String,
pub uncles: Vec<String>,
}
Fields§
§base_fee_per_gas: String
§difficulty: String
§extra_data: String
§gas_limit: String
§gas_used: String
§hash: String
§logs_bloom: String
§miner: String
§mix_hash: String
§nonce: String
§number: String
§parent_hash: String
§receipts_root: String
§sha3uncles: Option<String>
§size: String
§state_root: String
§timestamp: String
§total_difficulty: String
§transactions: Vec<Transaction>
§transactions_root: String
§uncles: Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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
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