Struct everscale_types::models::block::BlockId
source · pub struct BlockId {
pub shard: ShardIdent,
pub seqno: u32,
pub root_hash: HashBytes,
pub file_hash: HashBytes,
}Expand description
Full block id.
Fields§
§shard: ShardIdentBlock shard ident.
seqno: u32Block number in shard.
root_hash: HashBytesRepresentation hash of the root cell of the block.
file_hash: HashBytesHash of the BOC encoded root cell of the block.
Implementations§
source§impl BlockId
impl BlockId
sourcepub const fn is_masterchain(&self) -> bool
pub const fn is_masterchain(&self) -> bool
Returns true if this block id is for a masterchain block.
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.
impl Copy for BlockId
impl Eq for BlockId
impl StructuralEq for BlockId
impl StructuralPartialEq for BlockId
Auto Trait Implementations§
impl RefUnwindSafe for BlockId
impl Send for BlockId
impl Sync for BlockId
impl Unpin for BlockId
impl UnwindSafe for BlockId
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