pub struct Block {Show 21 fields
pub miner: String,
pub totalDifficulty: Option<Nat>,
pub receiptsRoot: String,
pub stateRoot: String,
pub hash: String,
pub difficulty: Option<Nat>,
pub size: Nat,
pub uncles: Vec<String>,
pub baseFeePerGas: Option<Nat>,
pub extraData: String,
pub transactionsRoot: Option<String>,
pub sha3Uncles: String,
pub nonce: Nat,
pub number: Nat,
pub timestamp: Nat,
pub transactions: Vec<String>,
pub gasLimit: Nat,
pub logsBloom: String,
pub parentHash: String,
pub gasUsed: Nat,
pub mixHash: String,
}Fields§
§miner: String§totalDifficulty: Option<Nat>§receiptsRoot: String§stateRoot: String§hash: String§difficulty: Option<Nat>§size: Nat§uncles: Vec<String>§baseFeePerGas: Option<Nat>§extraData: String§transactionsRoot: Option<String>§sha3Uncles: String§nonce: Nat§number: Nat§timestamp: Nat§transactions: Vec<String>§gasLimit: Nat§logsBloom: String§parentHash: String§gasUsed: Nat§mixHash: StringTrait Implementations§
Source§impl CandidType for Block
impl CandidType for Block
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