Struct alloy_eips::eip1898::RpcBlockHash
source · pub struct RpcBlockHash {
pub block_hash: BlockHash,
pub require_canonical: Option<bool>,
}
Expand description
A block hash which may have a boolean requireCanonical
field.
- If false, a RPC call should raise if a block matching the hash is not found.
- If true, a RPC call should additionally raise if the block is not in the canonical chain.
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md#specification
Fields§
§block_hash: BlockHash
A block hash
require_canonical: Option<bool>
Whether the block must be a canonical block
Implementations§
source§impl RpcBlockHash
impl RpcBlockHash
Trait Implementations§
source§impl AsRef<FixedBytes<32>> for RpcBlockHash
impl AsRef<FixedBytes<32>> for RpcBlockHash
source§impl Clone for RpcBlockHash
impl Clone for RpcBlockHash
source§fn clone(&self) -> RpcBlockHash
fn clone(&self) -> RpcBlockHash
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RpcBlockHash
impl Debug for RpcBlockHash
source§impl Display for RpcBlockHash
impl Display for RpcBlockHash
source§impl From<FixedBytes<32>> for RpcBlockHash
impl From<FixedBytes<32>> for RpcBlockHash
source§impl From<RpcBlockHash> for BlockId
impl From<RpcBlockHash> for BlockId
source§fn from(value: RpcBlockHash) -> Self
fn from(value: RpcBlockHash) -> Self
Converts to this type from the input type.
source§impl From<RpcBlockHash> for B256
impl From<RpcBlockHash> for B256
source§fn from(value: RpcBlockHash) -> Self
fn from(value: RpcBlockHash) -> Self
Converts to this type from the input type.
source§impl From<RpcBlockHash> for HashOrNumber
impl From<RpcBlockHash> for HashOrNumber
source§fn from(value: RpcBlockHash) -> Self
fn from(value: RpcBlockHash) -> Self
Converts to this type from the input type.
source§impl PartialEq for RpcBlockHash
impl PartialEq for RpcBlockHash
source§fn eq(&self, other: &RpcBlockHash) -> bool
fn eq(&self, other: &RpcBlockHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RpcBlockHash
impl Serialize for RpcBlockHash
impl Copy for RpcBlockHash
impl Eq for RpcBlockHash
impl StructuralPartialEq for RpcBlockHash
Auto Trait Implementations§
impl Freeze for RpcBlockHash
impl RefUnwindSafe for RpcBlockHash
impl Send for RpcBlockHash
impl Sync for RpcBlockHash
impl Unpin for RpcBlockHash
impl UnwindSafe for RpcBlockHash
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
Compare self to
key
and return true
if they are equal.