pub enum BlockId {
Hash(H256),
Number(BlockNumber),
}Expand description
A block hash or block number.
Variants§
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 From<BlockNumber> for BlockId
impl From<BlockNumber> for BlockId
Source§fn from(num: BlockNumber) -> Self
fn from(num: BlockNumber) -> Self
Converts to this type from the input type.
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