pub struct HeaderFields {
pub hash: Byte32,
pub number: BlockNumber,
pub epoch: EpochNumberWithFraction,
pub timestamp: u64,
pub parent_hash: Byte32,
}
Expand description
A compact representation of header fields, used for header verification and median time calculation
Fields§
§hash: Byte32
Block hash
number: BlockNumber
Block number
epoch: EpochNumberWithFraction
Block epoch
timestamp: u64
Block timestamp
parent_hash: Byte32
Block parent hash
Auto Trait Implementations§
impl !Freeze for HeaderFields
impl RefUnwindSafe for HeaderFields
impl Send for HeaderFields
impl Sync for HeaderFields
impl Unpin for HeaderFields
impl UnwindSafe for HeaderFields
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