pub struct BlockRef {
pub end_lt: u64,
pub seqno: u32,
pub root_hash: HashBytes,
pub file_hash: HashBytes,
}Expand description
Reference to the external block.
Fields§
§end_lt: u64The end of the logical time of the referenced block.
seqno: u32Sequence number of the referenced block.
root_hash: HashBytesRepresentation hash of the root cell of the referenced block.
file_hash: HashBytesHash of the BOC encoded root cell of the referenced block.
Implementations§
Source§impl BlockRef
impl BlockRef
Sourcepub fn as_block_id(&self, shard: ShardIdent) -> BlockId
pub fn as_block_id(&self, shard: ShardIdent) -> BlockId
Converts a BlockRef to a BlockId given a shard identifier.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockRef
impl<'de> Deserialize<'de> for BlockRef
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 Store for BlockRef
impl Store for BlockRef
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 Eq for BlockRef
impl StructuralPartialEq for BlockRef
Auto Trait Implementations§
impl Freeze for BlockRef
impl RefUnwindSafe for BlockRef
impl Send for BlockRef
impl Sync for BlockRef
impl Unpin for BlockRef
impl UnwindSafe for BlockRef
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> 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.