Struct fuel_core::model::FuelBlockHeader
source · pub struct FuelBlockHeader {
pub application: FuelApplicationHeader<GeneratedApplicationFields>,
pub consensus: FuelConsensusHeader<GeneratedConsensusFields>,
pub metadata: Option<HeaderMetadata>,
}
Expand description
A fuel block header that has all the fields generated because it has been executed.
Fields§
§application: FuelApplicationHeader<GeneratedApplicationFields>
The application header.
consensus: FuelConsensusHeader<GeneratedConsensusFields>
The consensus header.
metadata: Option<HeaderMetadata>
Header Metadata
Implementations§
source§impl FuelBlockHeader
impl FuelBlockHeader
sourcepub fn height(&self) -> &BlockHeight
pub fn height(&self) -> &BlockHeight
Fuel block height.
sourcepub fn application_hash(&self) -> &Bytes32
pub fn application_hash(&self) -> &Bytes32
The hash of the application header.
sourcepub fn consensus_type(&self) -> ConsensusType
pub fn consensus_type(&self) -> ConsensusType
The type of consensus this header is using.
Trait Implementations§
source§impl AsRef<FuelConsensusHeader<GeneratedConsensusFields>> for FuelBlockHeader
impl AsRef<FuelConsensusHeader<GeneratedConsensusFields>> for FuelBlockHeader
source§fn as_ref(&self) -> &FuelConsensusHeader<GeneratedConsensusFields>
fn as_ref(&self) -> &FuelConsensusHeader<GeneratedConsensusFields>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for FuelBlockHeader
impl Clone for FuelBlockHeader
source§fn clone(&self) -> FuelBlockHeader
fn clone(&self) -> FuelBlockHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FuelBlockHeader
impl Debug for FuelBlockHeader
source§impl Deref for FuelBlockHeader
impl Deref for FuelBlockHeader
§type Target = FuelApplicationHeader<GeneratedApplicationFields>
type Target = FuelApplicationHeader<GeneratedApplicationFields>
The resulting type after dereferencing.
source§impl<'de> Deserialize<'de> for FuelBlockHeader
impl<'de> Deserialize<'de> for FuelBlockHeader
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FuelBlockHeader, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FuelBlockHeader, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for FuelBlockHeader
impl Serialize for FuelBlockHeader
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more