pub struct BlockInfo {Show 13 fields
pub id: BlockHash,
pub height: u32,
pub version: Version,
pub timestamp: u64,
pub tx_count: u64,
pub size: usize,
pub weight: Weight,
pub merkle_root: TxMerkleNode,
pub previousblockhash: Option<BlockHash>,
pub mediantime: u64,
pub nonce: u32,
pub bits: CompactTarget,
pub difficulty: f64,
}Expand description
Fields§
§id: BlockHash§height: u32The block height of this Block.
version: VersionThe version of this Block.
timestamp: u64The UNIX timestamp of this Block, as claimed by the miner.
tx_count: u64The Transaction count for this Block.
size: usizeThe size of this Block, in bytes.
weight: Weight§merkle_root: TxMerkleNodeThe Merkle root of this Block.
previousblockhash: Option<BlockHash>§mediantime: u64The Median Time Past value for this Block.
nonce: u32This Block’s nonce.
bits: CompactTargetThe Block’s bits value, encoded as a CompactTarget.
difficulty: f64The Block’s difficulty target value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockInfo
impl<'de> Deserialize<'de> for BlockInfo
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
impl Eq for BlockInfo
Source§impl PartialEq for BlockInfo
A manual PartialEq implementation is required
since BlockInfo::difficulty is an f64.
impl PartialEq for BlockInfo
A manual PartialEq implementation is required
since BlockInfo::difficulty is an f64.
Auto Trait Implementations§
impl Freeze for BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnsafeUnpin for BlockInfo
impl UnwindSafe for BlockInfo
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