[][src]Struct types::beacon_block_header::BeaconBlockHeader

pub struct BeaconBlockHeader {
    pub slot: Slot,
    pub parent_root: Hash256,
    pub state_root: Hash256,
    pub body_root: Hash256,
    pub signature: Signature,
}

A header of a BeaconBlock.

Spec v0.8.1

Fields

slot: Slotparent_root: Hash256state_root: Hash256body_root: Hash256signature: Signature

Methods

impl BeaconBlockHeader[src]

pub fn canonical_root(&self) -> Hash256[src]

Returns the tree_hash_root of the header.

Spec v0.8.1

pub fn into_block<T: EthSpec>(self, body: BeaconBlockBody<T>) -> BeaconBlock<T>[src]

Given a body, consumes self and returns a complete BeaconBlock.

Spec v0.8.0

Trait Implementations

impl TestRandom for BeaconBlockHeader[src]

impl Clone for BeaconBlockHeader[src]

impl PartialEq<BeaconBlockHeader> for BeaconBlockHeader[src]

impl Debug for BeaconBlockHeader[src]

impl SignedRoot for BeaconBlockHeader[src]

impl TreeHash for BeaconBlockHeader[src]

impl Serialize for BeaconBlockHeader[src]

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

impl Decode for BeaconBlockHeader[src]

impl Encode for BeaconBlockHeader[src]

Auto Trait Implementations

impl Send for BeaconBlockHeader

impl Unpin for BeaconBlockHeader

impl Sync for BeaconBlockHeader

impl UnwindSafe for BeaconBlockHeader

impl RefUnwindSafe for BeaconBlockHeader

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized