pub struct BlockHeaderData {
pub header: Header,
pub height: u32,
pub chainwork: Work,
}
Expand description
A block header and some associated data. This information should be available from most block sources (and, notably, is available in Bitcoin Core’s RPC and REST interfaces).
Fields§
§header: Header
The block header itself.
height: u32
The block height where the genesis block has height 0.
chainwork: Work
The total chain work in expected number of double-SHA256 hashes required to build a chain of equivalent weight.
Trait Implementations§
Source§impl Clone for BlockHeaderData
impl Clone for BlockHeaderData
Source§fn clone(&self) -> BlockHeaderData
fn clone(&self) -> BlockHeaderData
Returns a copy 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 BlockHeaderData
impl Debug for BlockHeaderData
Source§impl PartialEq for BlockHeaderData
impl PartialEq for BlockHeaderData
impl Copy for BlockHeaderData
impl StructuralPartialEq for BlockHeaderData
Auto Trait Implementations§
impl Freeze for BlockHeaderData
impl RefUnwindSafe for BlockHeaderData
impl Send for BlockHeaderData
impl Sync for BlockHeaderData
impl Unpin for BlockHeaderData
impl UnwindSafe for BlockHeaderData
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