Struct bitcoincore_rpc_json::GetBlockResult
source · pub struct GetBlockResult {Show 19 fields
pub hash: Sha256dHash,
pub confirmations: usize,
pub size: usize,
pub strippedsize: Option<usize>,
pub weight: usize,
pub height: usize,
pub version: u32,
pub version_hex: Option<String>,
pub merkleroot: Sha256dHash,
pub tx: Vec<Sha256dHash>,
pub time: usize,
pub mediantime: Option<usize>,
pub nonce: u32,
pub bits: String,
pub difficulty: BigUint,
pub chainwork: String,
pub n_tx: usize,
pub previousblockhash: Option<Sha256dHash>,
pub nextblockhash: Option<Sha256dHash>,
}
Fields
hash: Sha256dHash
confirmations: usize
size: usize
strippedsize: Option<usize>
weight: usize
height: usize
version: u32
version_hex: Option<String>
merkleroot: Sha256dHash
tx: Vec<Sha256dHash>
time: usize
mediantime: Option<usize>
nonce: u32
bits: String
difficulty: BigUint
chainwork: String
n_tx: usize
previousblockhash: Option<Sha256dHash>
nextblockhash: Option<Sha256dHash>
Trait Implementations
sourceimpl Clone for GetBlockResult
impl Clone for GetBlockResult
sourcefn clone(&self) -> GetBlockResult
fn clone(&self) -> GetBlockResult
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 moresourceimpl Debug for GetBlockResult
impl Debug for GetBlockResult
sourceimpl<'de> Deserialize<'de> for GetBlockResult
impl<'de> Deserialize<'de> for GetBlockResult
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<GetBlockResult> for GetBlockResult
impl PartialEq<GetBlockResult> for GetBlockResult
sourcefn eq(&self, other: &GetBlockResult) -> bool
fn eq(&self, other: &GetBlockResult) -> bool
sourceimpl Serialize for GetBlockResult
impl Serialize for GetBlockResult
impl Eq for GetBlockResult
impl StructuralEq for GetBlockResult
impl StructuralPartialEq for GetBlockResult
Auto Trait Implementations
impl RefUnwindSafe for GetBlockResult
impl Send for GetBlockResult
impl Sync for GetBlockResult
impl Unpin for GetBlockResult
impl UnwindSafe for GetBlockResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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