pub enum EpochNumber {
Num(U64),
Earliest,
LatestCheckpoint,
LatestFinalized,
LatestConfirmed,
LatestState,
LatestMined,
}
Expand description
Represents rpc api epoch number param.
Variants§
Num(U64)
Number
Earliest
Earliest epoch (true genesis)
LatestCheckpoint
The latest checkpoint (cur_era_genesis)
LatestFinalized
LatestConfirmed
The latest confirmed (with the estimation of the confirmation meter)
LatestState
Latest block with state.
LatestMined
Latest mined block.
Implementations§
source§impl EpochNumber
impl EpochNumber
pub fn into_primitive(self) -> PrimitiveEpochNumber
Trait Implementations§
source§impl Clone for EpochNumber
impl Clone for EpochNumber
source§fn clone(&self) -> EpochNumber
fn clone(&self) -> EpochNumber
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 EpochNumber
impl Debug for EpochNumber
source§impl<'a> Deserialize<'a> for EpochNumber
impl<'a> Deserialize<'a> for EpochNumber
source§fn deserialize<D>(deserializer: D) -> Result<EpochNumber, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<EpochNumber, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for EpochNumber
impl FromStr for EpochNumber
source§impl Hash for EpochNumber
impl Hash for EpochNumber
source§impl Into<EpochNumber> for EpochNumber
impl Into<EpochNumber> for EpochNumber
source§impl Into<EpochNumber> for u64
impl Into<EpochNumber> for u64
source§fn into(self) -> EpochNumber
fn into(self) -> EpochNumber
Converts this type into the (usually inferred) input type.
source§impl PartialEq for EpochNumber
impl PartialEq for EpochNumber
source§fn eq(&self, other: &EpochNumber) -> bool
fn eq(&self, other: &EpochNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EpochNumber
impl Serialize for EpochNumber
impl Eq for EpochNumber
impl StructuralPartialEq for EpochNumber
Auto Trait Implementations§
impl RefUnwindSafe for EpochNumber
impl Send for EpochNumber
impl Sync for EpochNumber
impl Unpin for EpochNumber
impl UnwindSafe for EpochNumber
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