pub struct GetBlockHeaderResult {Show 15 fields
pub hash: BlockHash,
pub confirmations: i32,
pub height: usize,
pub version: Version,
pub version_hex: Option<Vec<u8>>,
pub merkle_root: TxMerkleNode,
pub time: usize,
pub median_time: Option<usize>,
pub nonce: u32,
pub bits: String,
pub difficulty: f64,
pub chainwork: Vec<u8>,
pub n_tx: usize,
pub previous_block_hash: Option<BlockHash>,
pub next_block_hash: Option<BlockHash>,
}
Fields§
§hash: BlockHash
§confirmations: i32
§height: usize
§version: Version
§version_hex: Option<Vec<u8>>
§merkle_root: TxMerkleNode
§time: usize
§median_time: Option<usize>
§nonce: u32
§bits: String
§difficulty: f64
§chainwork: Vec<u8>
§n_tx: usize
§previous_block_hash: Option<BlockHash>
§next_block_hash: Option<BlockHash>
Trait Implementations§
source§impl Clone for GetBlockHeaderResult
impl Clone for GetBlockHeaderResult
source§fn clone(&self) -> GetBlockHeaderResult
fn clone(&self) -> GetBlockHeaderResult
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 GetBlockHeaderResult
impl Debug for GetBlockHeaderResult
source§impl<'de> Deserialize<'de> for GetBlockHeaderResult
impl<'de> Deserialize<'de> for GetBlockHeaderResult
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<GetBlockHeaderResult> for GetBlockHeaderResult
impl PartialEq<GetBlockHeaderResult> for GetBlockHeaderResult
source§fn eq(&self, other: &GetBlockHeaderResult) -> bool
fn eq(&self, other: &GetBlockHeaderResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.