Struct fuel_core_interfaces::model::FuelConsensusHeader
source · pub struct FuelConsensusHeader<Generated> {
pub prev_root: Bytes32,
pub height: BlockHeight,
pub time: Tai64,
pub generated: Generated,
}
Expand description
The fuel block consensus header.
This contains fields related to consensus plus
the hash of the FuelApplicationHeader
.
Fields§
§prev_root: Bytes32
Merkle root of all previous block header hashes.
height: BlockHeight
Fuel block height.
time: Tai64
The block producer time.
generated: Generated
generated consensus fields.
Trait Implementations§
source§impl AsRef<FuelConsensusHeader<Empty>> for PartialFuelBlockHeader
impl AsRef<FuelConsensusHeader<Empty>> for PartialFuelBlockHeader
source§fn as_ref(&self) -> &FuelConsensusHeader<Empty>
fn as_ref(&self) -> &FuelConsensusHeader<Empty>
Converts this type into a shared reference of the (usually inferred) input type.
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<Generated: Clone> Clone for FuelConsensusHeader<Generated>
impl<Generated: Clone> Clone for FuelConsensusHeader<Generated>
source§fn clone(&self) -> FuelConsensusHeader<Generated>
fn clone(&self) -> FuelConsensusHeader<Generated>
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