Struct bitcoincore_rpc_json::GetBlockResult
source · pub struct GetBlockResult {Show 19 fields
pub hash: BlockHash,
pub confirmations: i32,
pub size: usize,
pub strippedsize: Option<usize>,
pub weight: usize,
pub height: usize,
pub version: i32,
pub version_hex: Option<Vec<u8>>,
pub merkleroot: TxMerkleNode,
pub tx: Vec<Txid>,
pub time: usize,
pub mediantime: Option<usize>,
pub nonce: u32,
pub bits: String,
pub difficulty: f64,
pub chainwork: Vec<u8>,
pub n_tx: usize,
pub previousblockhash: Option<BlockHash>,
pub nextblockhash: Option<BlockHash>,
}
Fields§
§hash: BlockHash
§confirmations: i32
§size: usize
§strippedsize: Option<usize>
§weight: usize
§height: usize
§version: i32
§version_hex: Option<Vec<u8>>
§merkleroot: TxMerkleNode
§tx: Vec<Txid>
§time: usize
§mediantime: Option<usize>
§nonce: u32
§bits: String
§difficulty: f64
§chainwork: Vec<u8>
§n_tx: usize
§previousblockhash: Option<BlockHash>
§nextblockhash: Option<BlockHash>
Trait Implementations§
source§impl Clone for GetBlockResult
impl Clone for GetBlockResult
source§fn clone(&self) -> GetBlockResult
fn clone(&self) -> GetBlockResult
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 GetBlockResult
impl Debug for GetBlockResult
source§impl<'de> Deserialize<'de> for GetBlockResult
impl<'de> Deserialize<'de> for GetBlockResult
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<GetBlockResult> for GetBlockResult
impl PartialEq<GetBlockResult> for GetBlockResult
source§fn eq(&self, other: &GetBlockResult) -> bool
fn eq(&self, other: &GetBlockResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.