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

The block header

List of transactions contained in the block

Trait Implementations

impl PartialEq for Block
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Block
[src]

impl Clone for Block
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Block
[src]

[src]

Formats the value using the given formatter. Read more

impl BitcoinHash for Block
[src]

[src]

Produces a Sha256dHash which can be used to refer to the object

impl<S: SimpleEncoder> ConsensusEncodable<S> for Block
[src]

[src]

Encode an object with a well-defined format

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

[src]

Decode an object with a well-defined format

Auto Trait Implementations

impl Send for Block

impl Sync for Block