Enum ethers::types::BlockId [−][src]
pub enum BlockId {
Hash(H256),
Number(BlockNumber),
}
Expand description
A Block Hash or Block Number
Variants
Hash(H256)
Tuple Fields
0: H256
A block hash
Number(BlockNumber)
Tuple Fields
0: BlockNumber
A block number
Trait Implementations
Performs the conversion.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlockId
impl UnwindSafe for BlockId
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more