Struct fuel_core_interfaces::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 more