Struct block::Block
[−]
[src]
pub struct Block { pub header: Header, pub transactions: Vec<Transaction>, pub ommers: Vec<Header>, }
Fields
header: Header
transactions: Vec<Transaction>
ommers: Vec<Header>
Trait Implementations
impl Clone for Block
[src]
fn clone(&self) -> Block
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Block
[src]
impl PartialEq for Block
[src]
fn eq(&self, __arg_0: &Block) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Block) -> bool
This method tests for !=
.
impl Eq for Block
[src]
impl Encodable for Block
[src]
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl Decodable for Block
[src]
fn decode(rlp: &UntrustedRlp) -> Result<Self, DecoderError>
Decode a value from RLP bytes