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<'de> Deserialize<'de> for BlockId
impl<'de> Deserialize<'de> for BlockId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for BlockId
impl Ord for BlockId
Source§impl PartialOrd for BlockId
impl PartialOrd for BlockId
Source§impl Store for BlockId
impl Store for BlockId
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for BlockId
impl Eq for BlockId
impl StructuralPartialEq for BlockId
Auto Trait Implementations§
impl Freeze for BlockId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.