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 for GetBlockHeaderResult
impl PartialEq 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 ==
.source§impl Serialize for GetBlockHeaderResult
impl Serialize for GetBlockHeaderResult
impl StructuralPartialEq for GetBlockHeaderResult
Auto Trait Implementations§
impl Freeze for GetBlockHeaderResult
impl RefUnwindSafe for GetBlockHeaderResult
impl Send for GetBlockHeaderResult
impl Sync for GetBlockHeaderResult
impl Unpin for GetBlockHeaderResult
impl UnwindSafe for GetBlockHeaderResult
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