pub enum EpochReference {
AtEpoch(CryptoHash),
AtBlock(u64),
AtBlockHash(CryptoHash),
Latest,
}Expand description
A reference to a specific epoch. This type is used to specify the epoch for some queries.
Variants§
AtEpoch(CryptoHash)
Reference to a specific Epoch Id
AtBlock(u64)
Reference to an epoch at a specific block height.
AtBlockHash(CryptoHash)
Reference to an epoch at a specific block hash.
Latest
Latest epoch on the node
Trait Implementations§
Source§impl Clone for EpochReference
impl Clone for EpochReference
Source§fn clone(&self) -> EpochReference
fn clone(&self) -> EpochReference
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 moreAuto Trait Implementations§
impl Freeze for EpochReference
impl RefUnwindSafe for EpochReference
impl Send for EpochReference
impl Sync for EpochReference
impl Unpin for EpochReference
impl UnwindSafe for EpochReference
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