Struct bitcoin::blockdata::block::Block
[−]
[src]
pub struct Block { pub header: BlockHeader, pub txdata: Vec<Transaction>, }
A Bitcoin block, which is a collection of transactions with an attached proof of work.
Fields
header: BlockHeader
The block header
txdata: Vec<Transaction>
List of transactions contained in the block
Trait Implementations
impl PartialEq for Block
[src]
fn eq(&self, __arg_0: &Block) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Block) -> bool
[src]
This method tests for !=
.
impl Eq for Block
[src]
impl Clone for Block
[src]
fn clone(&self) -> Block
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Block
[src]
impl BitcoinHash for Block
[src]
fn bitcoin_hash(&self) -> Sha256dHash
[src]
Produces a Sha256dHash which can be used to refer to the object
impl<S: SimpleEncoder> ConsensusEncodable<S> for Block
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>
[src]
Encode an object with a well-defined format