Struct ckb_traits::HeaderFields
source · 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: Byte32Block hash
number: BlockNumberBlock number
epoch: EpochNumberWithFractionBlock epoch
timestamp: u64Block timestamp
parent_hash: Byte32Block 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