Struct everscale_types::models::block::BlockExtra
source · pub struct BlockExtra {
pub in_msg_description: Cell,
pub out_msg_description: Cell,
pub account_blocks: Lazy<AugDict<HashBytes, CurrencyCollection, AccountBlock>>,
pub rand_seed: HashBytes,
pub created_by: HashBytes,
pub custom: Option<Lazy<McBlockExtra>>,
}Expand description
Block content.
Fields§
§in_msg_description: CellIncoming message description.
out_msg_description: CellOutgoing message description.
account_blocks: Lazy<AugDict<HashBytes, CurrencyCollection, AccountBlock>>Block transactions info.
rand_seed: HashBytesRandom generator seed.
created_by: HashBytesPublic key of the collator who produced this block.
custom: Option<Lazy<McBlockExtra>>Additional block content.
Implementations§
source§impl BlockExtra
impl BlockExtra
sourcepub fn load_custom(&self) -> Result<Option<McBlockExtra>, Error>
pub fn load_custom(&self) -> Result<Option<McBlockExtra>, Error>
Tries to load additional block content.
Trait Implementations§
source§impl Clone for BlockExtra
impl Clone for BlockExtra
source§fn clone(&self) -> BlockExtra
fn clone(&self) -> BlockExtra
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 BlockExtra
impl Debug for BlockExtra
source§impl<'a> Load<'a> for BlockExtra
impl<'a> Load<'a> for BlockExtra
source§impl Store for BlockExtra
impl Store for BlockExtra
source§fn store_into(
&self,
builder: &mut CellBuilder,
finalizer: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, finalizer: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl !RefUnwindSafe for BlockExtra
impl Send for BlockExtra
impl Sync for BlockExtra
impl Unpin for BlockExtra
impl !UnwindSafe for BlockExtra
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more