pub struct GetBlockVerbosityOne {Show 18 fields
pub hash: BlockHash,
pub confirmations: i64,
pub size: u32,
pub stripped_size: Option<u32>,
pub weight: Weight,
pub height: u32,
pub version: Version,
pub merkle_root: String,
pub tx: Vec<Txid>,
pub time: u32,
pub median_time: Option<u32>,
pub nonce: u32,
pub bits: CompactTarget,
pub difficulty: f64,
pub chain_work: Work,
pub n_tx: u32,
pub previous_block_hash: Option<BlockHash>,
pub next_block_hash: Option<BlockHash>,
}Expand description
Models the result of JSON-RPC method getblock with verbosity set to 1.
Fields§
§hash: BlockHashThe block hash (same as provided) in RPC call.
confirmations: i64The number of confirmations, or -1 if the block is not on the main chain.
size: u32The block size.
stripped_size: Option<u32>The block size excluding witness data.
weight: WeightThe block weight as defined in BIP-141.
height: u32The block height or index.
version: VersionThe block version.
merkle_root: StringThe merkle root.
tx: Vec<Txid>The transaction ids.
time: u32The block time expressed in UNIX epoch time.
median_time: Option<u32>The median block time expressed in UNIX epoch time.
nonce: u32The nonce.
bits: CompactTargetThe bits.
difficulty: f64The difficulty.
chain_work: WorkExpected number of hashes required to produce the chain up to this block (in hex).
n_tx: u32The number of transactions in the block.
previous_block_hash: Option<BlockHash>The hash of the previous block (if available).
next_block_hash: Option<BlockHash>The hash of the next block (if available).
Trait Implementations§
Source§impl Clone for GetBlockVerbosityOne
impl Clone for GetBlockVerbosityOne
Source§fn clone(&self) -> GetBlockVerbosityOne
fn clone(&self) -> GetBlockVerbosityOne
Returns a duplicate 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 GetBlockVerbosityOne
impl Debug for GetBlockVerbosityOne
Source§impl<'de> Deserialize<'de> for GetBlockVerbosityOne
impl<'de> Deserialize<'de> for GetBlockVerbosityOne
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 GetBlockVerbosityOne
impl PartialEq for GetBlockVerbosityOne
Source§impl Serialize for GetBlockVerbosityOne
impl Serialize for GetBlockVerbosityOne
impl StructuralPartialEq for GetBlockVerbosityOne
Auto Trait Implementations§
impl Freeze for GetBlockVerbosityOne
impl RefUnwindSafe for GetBlockVerbosityOne
impl Send for GetBlockVerbosityOne
impl Sync for GetBlockVerbosityOne
impl Unpin for GetBlockVerbosityOne
impl UnwindSafe for GetBlockVerbosityOne
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