Struct everscale_types::models::block::BlockId
source · pub struct BlockId {
pub shard: ShardIdent,
pub seqno: u32,
pub root_hash: CellHash,
pub file_hash: CellHash,
}Expand description
Full block id.
Fields§
§shard: ShardIdentBlock shard ident.
seqno: u32Block number in shard.
root_hash: CellHashRepresentation hash of the root cell of the block.
file_hash: CellHashHash of the BOC encoded root cell of the block.
Implementations§
source§impl BlockId
impl BlockId
sourcepub const fn as_short_id(&self) -> BlockIdShort
pub const fn as_short_id(&self) -> BlockIdShort
Returns short block id.
Trait Implementations§
source§impl Ord for BlockId
impl Ord for BlockId
source§impl PartialEq<BlockId> for BlockId
impl PartialEq<BlockId> for BlockId
source§impl PartialOrd<BlockId> for BlockId
impl PartialOrd<BlockId> for BlockId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Store for BlockId
impl Store for BlockId
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.