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 Debug for Block
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 Eq 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 BitcoinHash for Block
[src]

fn bitcoin_hash(&self) -> Sha256dHash

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>

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for Block
[src]

fn consensus_decode(d: &mut D) -> Result<Block, D::Error>

Decode an object with a well-defined format