pub struct GetBlockHeaderVerbose {Show 14 fields
pub hash: BlockHash,
pub confirmations: i64,
pub height: u32,
pub version: Version,
pub merkle_root: TxMerkleNode,
pub time: u32,
pub median_time: u32,
pub nonce: u32,
pub bits: CompactTarget,
pub difficulty: f64,
pub chain_work: Work,
pub n_tx: u32,
pub previous_block_hash: Option<BlockHash>,
pub next_block_hash: Option<BlockHash>,
}Expand description
Models the result of JSON-RPC method getblockheader.
Fields§
§hash: BlockHashthe block hash (same as provided).
confirmations: i64The number of confirmations, or -1 if the block is not on the main chain.
height: u32The block height or index.
version: VersionBlock version, now repurposed for soft fork signalling.
merkle_root: TxMerkleNodeThe root hash of the Merkle tree of transactions in the block.
time: u32The timestamp of the block, as claimed by the miner (seconds since epoch (Jan 1 1970 GMT).
median_time: u32The median block time in seconds since epoch (Jan 1 1970 GMT).
nonce: u32The nonce.
bits: CompactTargetThe target value below which the blockhash must lie.
difficulty: f64The difficulty.
chain_work: WorkExpected number of hashes required to produce the current chain.
n_tx: u32The number of transactions in the block.
previous_block_hash: Option<BlockHash>The hash of the previous block (if available).
next_block_hash: Option<BlockHash>The hash of the next block (if available).
Trait Implementations§
Source§impl Clone for GetBlockHeaderVerbose
impl Clone for GetBlockHeaderVerbose
Source§fn clone(&self) -> GetBlockHeaderVerbose
fn clone(&self) -> GetBlockHeaderVerbose
Returns a duplicate 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 GetBlockHeaderVerbose
impl Debug for GetBlockHeaderVerbose
Source§impl<'de> Deserialize<'de> for GetBlockHeaderVerbose
impl<'de> Deserialize<'de> for GetBlockHeaderVerbose
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 GetBlockHeaderVerbose
impl PartialEq for GetBlockHeaderVerbose
Source§impl Serialize for GetBlockHeaderVerbose
impl Serialize for GetBlockHeaderVerbose
impl StructuralPartialEq for GetBlockHeaderVerbose
Auto Trait Implementations§
impl Freeze for GetBlockHeaderVerbose
impl RefUnwindSafe for GetBlockHeaderVerbose
impl Send for GetBlockHeaderVerbose
impl Sync for GetBlockHeaderVerbose
impl Unpin for GetBlockHeaderVerbose
impl UnwindSafe for GetBlockHeaderVerbose
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