pub struct GetBlockHash(pub String);
Expand description
Result of JSON-RPC method getblockhash
.
Returns hash of block in best-block-chain at height provided.
Arguments:
- height (numeric, required) The height index
Tuple Fields§
§0: String
Implementations§
Source§impl GetBlockHash
impl GetBlockHash
Sourcepub fn into_model(self) -> Result<GetBlockHash, HexToArrayError>
pub fn into_model(self) -> Result<GetBlockHash, HexToArrayError>
Converts version specific type to a version nonspecific, more strongly typed type.
Sourcepub fn block_hash(self) -> Result<BlockHash, HexToArrayError>
pub fn block_hash(self) -> Result<BlockHash, HexToArrayError>
Converts json straight to a bitcoin::BlockHash
.
Trait Implementations§
Source§impl Clone for GetBlockHash
impl Clone for GetBlockHash
Source§fn clone(&self) -> GetBlockHash
fn clone(&self) -> GetBlockHash
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 GetBlockHash
impl Debug for GetBlockHash
Source§impl<'de> Deserialize<'de> for GetBlockHash
impl<'de> Deserialize<'de> for GetBlockHash
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 PartialEq for GetBlockHash
impl PartialEq for GetBlockHash
Source§impl Serialize for GetBlockHash
impl Serialize for GetBlockHash
impl StructuralPartialEq for GetBlockHash
Auto Trait Implementations§
impl Freeze for GetBlockHash
impl RefUnwindSafe for GetBlockHash
impl Send for GetBlockHash
impl Sync for GetBlockHash
impl Unpin for GetBlockHash
impl UnwindSafe for GetBlockHash
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