[][src]Struct elements::BlockHeader

pub struct BlockHeader {
    pub version: u32,
    pub prev_blockhash: Hash,
    pub merkle_root: Hash,
    pub time: u32,
    pub height: u32,
    pub proof: Proof,
}

Elements block header

Fields

version: u32

Version - should be 0x20000000 except when versionbits signalling

prev_blockhash: Hash

Previous blockhash

merkle_root: Hash

Transaction Merkle root

time: u32

Block timestamp

height: u32

Block height

proof: Proof

Block height

Trait Implementations

impl PartialEq<BlockHeader> for BlockHeader[src]

impl Default for BlockHeader[src]

impl Clone for BlockHeader[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BlockHeader[src]

impl Debug for BlockHeader[src]

impl Hash for BlockHeader[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<D: Decoder> Decodable<D> for BlockHeader[src]

impl<S: Encoder> Encodable<S> for BlockHeader[src]

impl BitcoinHash for BlockHeader[src]

Auto Trait Implementations

impl Send for BlockHeader

impl Sync for BlockHeader

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]