pub type Hash = GetBlockHashResponse;
Expand description
A block hash used by this crate that encodes as hex by default.
Aliased Type§
struct Hash(pub(crate) Hash);
Fields§
§0: Hash
Implementations
Source§impl GetBlockHashResponse
impl GetBlockHashResponse
Sourcepub fn new(hash: Hash) -> Self
pub fn new(hash: Hash) -> Self
Constructs a new GetBlockHashResponse
from a block hash.
Sourcepub fn hash(&self) -> Hash
pub fn hash(&self) -> Hash
Returns the contents of GetBlockHashResponse
.
Trait Implementations
Source§impl Clone for GetBlockHashResponse
impl Clone for GetBlockHashResponse
Source§fn clone(&self) -> GetBlockHashResponse
fn clone(&self) -> GetBlockHashResponse
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 GetBlockHashResponse
impl Debug for GetBlockHashResponse
Source§impl Default for GetBlockHashResponse
impl Default for GetBlockHashResponse
Source§impl<'de> Deserialize<'de> for GetBlockHashResponse
impl<'de> Deserialize<'de> for GetBlockHashResponse
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