pub struct BlockId {
pub height: u32,
pub hash: BlockHash,
}
Expand description
A reference to a block in the canonical chain.
Fields§
§height: u32
The height of the block.
hash: BlockHash
The hash of the block.
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
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