Struct blockchain::BlockHeader
source · pub struct BlockHeader {
pub timestamp: i64,
pub nonce: u32,
pub previous_hash: String,
pub merkle: String,
pub difficulty: u32,
}Expand description
A identifier of a particular block on an entire blockchain
Fields§
§timestamp: i64A timestamp at which a block was mined
nonce: u32An integer to achieve the network’s difficulty
previous_hash: StringA hash of a previous block
merkle: StringA Merkel root hash
difficulty: u32A current difficulty level of the network
Trait Implementations§
source§impl Debug for BlockHeader
impl Debug for BlockHeader
Auto Trait Implementations§
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnwindSafe for BlockHeader
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