Struct fuel_core::model::FuelBlockDb
source · pub struct FuelBlockDb {
pub header: FuelBlockHeader,
pub transactions: Vec<Bytes32, Global>,
}
Expand description
The compact representation of a block used in the database
Fields§
§header: FuelBlockHeader
§transactions: Vec<Bytes32, Global>
Implementations§
source§impl FuelBlockDb
impl FuelBlockDb
sourcepub fn consensus_type(&self) -> ConsensusType
pub fn consensus_type(&self) -> ConsensusType
The type of consensus this header is using.
Trait Implementations§
source§impl Clone for FuelBlockDb
impl Clone for FuelBlockDb
source§fn clone(&self) -> FuelBlockDb
fn clone(&self) -> FuelBlockDb
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 FuelBlockDb
impl Debug for FuelBlockDb
source§impl<'de> Deserialize<'de> for FuelBlockDb
impl<'de> Deserialize<'de> for FuelBlockDb
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FuelBlockDb, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FuelBlockDb, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<FuelBlockDb> for Block
impl From<FuelBlockDb> for Block
source§fn from(block: FuelBlockDb) -> Self
fn from(block: FuelBlockDb) -> Self
Converts to this type from the input type.
source§impl From<FuelBlockDb> for Header
impl From<FuelBlockDb> for Header
source§fn from(block: FuelBlockDb) -> Self
fn from(block: FuelBlockDb) -> Self
Converts to this type from the input type.
source§impl Serialize for FuelBlockDb
impl Serialize for FuelBlockDb
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