pub struct GetBlockHeader(pub String);
Expand description
Result of JSON-RPC method getblockheader
with verbosity set to false
.
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader ‘hash’. If verbose is true, returns an Object with information about blockheader ‘hash’.
Arguments:
- “hash” (string, required) The block hash
Tuple Fields§
§0: String
Implementations§
Source§impl GetBlockHeader
impl GetBlockHeader
Sourcepub fn into_model(self) -> Result<GetBlockHeader, GetBlockHeaderError>
pub fn into_model(self) -> Result<GetBlockHeader, GetBlockHeaderError>
Converts version specific type to a version nonspecific, more strongly typed type.
Sourcepub fn block_header(self) -> Result<Header, GetBlockHeaderError>
pub fn block_header(self) -> Result<Header, GetBlockHeaderError>
Converts json straight to a bitcoin::BlockHeader
.
Trait Implementations§
Source§impl Clone for GetBlockHeader
impl Clone for GetBlockHeader
Source§fn clone(&self) -> GetBlockHeader
fn clone(&self) -> GetBlockHeader
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 GetBlockHeader
impl Debug for GetBlockHeader
Source§impl<'de> Deserialize<'de> for GetBlockHeader
impl<'de> Deserialize<'de> for GetBlockHeader
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 GetBlockHeader
impl PartialEq for GetBlockHeader
Source§impl Serialize for GetBlockHeader
impl Serialize for GetBlockHeader
impl StructuralPartialEq for GetBlockHeader
Auto Trait Implementations§
impl Freeze for GetBlockHeader
impl RefUnwindSafe for GetBlockHeader
impl Send for GetBlockHeader
impl Sync for GetBlockHeader
impl Unpin for GetBlockHeader
impl UnwindSafe for GetBlockHeader
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