Struct fuel_core_interfaces::model::FuelBlockDb
source · pub struct FuelBlockDb {
pub header: FuelBlockHeader,
pub transactions: Vec<Bytes32>,
}Expand description
The compact representation of a block used in the database
Fields
header: FuelBlockHeadertransactions: Vec<Bytes32>Implementations
sourceimpl FuelBlockDb
impl FuelBlockDb
sourcepub fn consensus_type(&self) -> ConsensusType
pub fn consensus_type(&self) -> ConsensusType
The type of consensus this header is using.
sourcepub fn fix_me_default_block() -> Self
pub fn fix_me_default_block() -> Self
Hack until we completely remove the need for meaningless default headers.
Trait Implementations
sourceimpl Clone for FuelBlockDb
impl Clone for FuelBlockDb
sourcefn clone(&self) -> FuelBlockDb
fn clone(&self) -> FuelBlockDb
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for FuelBlockDb
impl Send for FuelBlockDb
impl Sync for FuelBlockDb
impl Unpin for FuelBlockDb
impl UnwindSafe for FuelBlockDb
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more