Struct monero::blockdata::block::BlockHeader[][src]

pub struct BlockHeader {
    pub major_version: VarInt,
    pub minor_version: VarInt,
    pub timestamp: VarInt,
    pub prev_id: Hash,
    pub nonce: u32,
}

A block header containing the version, the mining timestamp, the previous block hash and the nonce.

Fields

major_version: VarInt

Major version, defines the consensus rules.

minor_version: VarInt

Minor version, also used to vote.

timestamp: VarInt

Block mining timestamp.

prev_id: Hash

Previous block hash.

nonce: u32

The nonce used for the proof of work.

Trait Implementations

impl Clone for BlockHeader[src]

impl Debug for BlockHeader[src]

impl Decodable for BlockHeader[src]

impl Default for BlockHeader[src]

impl<'de> Deserialize<'de> for BlockHeader[src]

impl Display for BlockHeader[src]

impl Encodable for BlockHeader[src]

impl Serialize for BlockHeader[src]

impl StrictDecode for BlockHeader[src]

This is supported on crate feature strict_encoding_support only.

impl StrictEncode for BlockHeader[src]

This is supported on crate feature strict_encoding_support only.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.