[][src]Struct bitcoincore_rpc_json::GetBlockHeaderResult

pub struct GetBlockHeaderResult {
    pub hash: Hash,
    pub confirmations: u32,
    pub height: usize,
    pub version: u32,
    pub version_hex: Option<Vec<u8>>,
    pub merkleroot: Hash,
    pub time: usize,
    pub mediantime: Option<usize>,
    pub nonce: u32,
    pub bits: String,
    pub difficulty: BigUint,
    pub chainwork: Vec<u8>,
    pub n_tx: usize,
    pub previousblockhash: Option<Hash>,
    pub nextblockhash: Option<Hash>,
}

Fields

hash: Hashconfirmations: u32height: usizeversion: u32version_hex: Option<Vec<u8>>merkleroot: Hashtime: usizemediantime: Option<usize>nonce: u32bits: Stringdifficulty: BigUintchainwork: Vec<u8>n_tx: usizepreviousblockhash: Option<Hash>nextblockhash: Option<Hash>

Trait Implementations

impl Eq for GetBlockHeaderResult[src]

impl PartialEq<GetBlockHeaderResult> for GetBlockHeaderResult[src]

impl Clone for GetBlockHeaderResult[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GetBlockHeaderResult[src]

impl Serialize for GetBlockHeaderResult[src]

impl<'de> Deserialize<'de> for GetBlockHeaderResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Configure for T where
    T: ?Sized
[src]

default fn readable(self) -> Readable<Self>[src]

Marks self as using is_human_readable == true

default fn compact(self) -> Compact<Self>[src]

Marks self as using is_human_readable == false