pub struct Block<Tx> {
pub header: BlockHeader,
pub transactions: Vec<Tx>,
}Expand description
Evm block object
A block will contain a header and either a list of full transaction objects or a list of only transaction hashes.
Fields§
§header: BlockHeader§transactions: Vec<Tx>Trait Implementations§
Source§impl<'de, Tx> Deserialize<'de> for Block<Tx>where
Tx: Deserialize<'de>,
impl<'de, Tx> Deserialize<'de> for Block<Tx>where
Tx: Deserialize<'de>,
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
impl<Tx: Eq> Eq for Block<Tx>
impl<Tx> StructuralPartialEq for Block<Tx>
Auto Trait Implementations§
impl<Tx> Freeze for Block<Tx>
impl<Tx> RefUnwindSafe for Block<Tx>where
Tx: RefUnwindSafe,
impl<Tx> Send for Block<Tx>where
Tx: Send,
impl<Tx> Sync for Block<Tx>where
Tx: Sync,
impl<Tx> Unpin for Block<Tx>where
Tx: Unpin,
impl<Tx> UnwindSafe for Block<Tx>where
Tx: UnwindSafe,
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