pub struct GetBlockHeaderResult {Show 15 fields
pub hash: BlockHash,
pub confirmations: i32,
pub height: usize,
pub version: i32,
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: i32
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
sourceimpl Clone for GetBlockHeaderResult
impl Clone for GetBlockHeaderResult
sourcefn clone(&self) -> GetBlockHeaderResult
fn clone(&self) -> GetBlockHeaderResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetBlockHeaderResult
impl Debug for GetBlockHeaderResult
sourceimpl<'de> Deserialize<'de> for GetBlockHeaderResult
impl<'de> Deserialize<'de> for GetBlockHeaderResult
sourcefn 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
sourceimpl PartialEq<GetBlockHeaderResult> for GetBlockHeaderResult
impl PartialEq<GetBlockHeaderResult> for GetBlockHeaderResult
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &GetBlockHeaderResult) -> bool
fn ne(&self, other: &GetBlockHeaderResult) -> bool
This method tests for !=
.
sourceimpl Serialize for GetBlockHeaderResult
impl Serialize for GetBlockHeaderResult
impl StructuralPartialEq for GetBlockHeaderResult
Auto Trait Implementations
impl RefUnwindSafe for GetBlockHeaderResult
impl Send for GetBlockHeaderResult
impl Sync for GetBlockHeaderResult
impl Unpin for GetBlockHeaderResult
impl UnwindSafe for GetBlockHeaderResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more