pub struct EpochHeader {Show 15 fields
pub chain_id: Hash,
pub epoch_id: u64,
pub exec_epoch_id: u64,
pub pre_hash: Hash,
pub timestamp: u64,
pub logs_bloom: Vec<Bloom>,
pub order_root: MerkleRoot,
pub confirm_root: Vec<MerkleRoot>,
pub state_root: MerkleRoot,
pub receipt_root: Vec<MerkleRoot>,
pub cycles_used: Vec<u64>,
pub proposer: Address,
pub proof: Proof,
pub validator_version: u64,
pub validators: Vec<Validator>,
}
Fields§
§chain_id: Hash
§epoch_id: u64
§exec_epoch_id: u64
§pre_hash: Hash
§timestamp: u64
§logs_bloom: Vec<Bloom>
§order_root: MerkleRoot
§confirm_root: Vec<MerkleRoot>
§state_root: MerkleRoot
§receipt_root: Vec<MerkleRoot>
§cycles_used: Vec<u64>
§proposer: Address
§proof: Proof
§validator_version: u64
§validators: Vec<Validator>
Trait Implementations§
Source§impl Clone for EpochHeader
impl Clone for EpochHeader
Source§fn clone(&self) -> EpochHeader
fn clone(&self) -> EpochHeader
Returns a duplicate 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 EpochHeader
impl Debug for EpochHeader
Source§impl Decodable for EpochHeader
impl Decodable for EpochHeader
Source§impl Encodable for EpochHeader
impl Encodable for EpochHeader
Source§impl FixedCodec for EpochHeader
impl FixedCodec for EpochHeader
fn encode_fixed(&self) -> ProtocolResult<Bytes>
fn decode_fixed(bytes: Bytes) -> ProtocolResult<Self>
Source§impl From<EpochHeader> for EpochHeader
impl From<EpochHeader> for EpochHeader
Source§fn from(epoch_header: EpochHeader) -> EpochHeader
fn from(epoch_header: EpochHeader) -> EpochHeader
Converts to this type from the input type.
Source§impl PartialEq for EpochHeader
impl PartialEq for EpochHeader
Source§impl TryFrom<EpochHeader> for EpochHeader
impl TryFrom<EpochHeader> for EpochHeader
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Source§fn try_from(epoch_header: EpochHeader) -> Result<EpochHeader, Self::Error>
fn try_from(epoch_header: EpochHeader) -> Result<EpochHeader, Self::Error>
Performs the conversion.
impl Eq for EpochHeader
impl StructuralPartialEq for EpochHeader
Auto Trait Implementations§
impl !Freeze for EpochHeader
impl RefUnwindSafe for EpochHeader
impl Send for EpochHeader
impl Sync for EpochHeader
impl Unpin for EpochHeader
impl UnwindSafe for EpochHeader
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