pub struct EpochId(pub CryptoHash);Expand description
Epoch identifier – wrapped hash, to make it easier to distinguish. EpochId of epoch T is the hash of last block in T-2 EpochId of first two epochs is 0
JSON schema
{
"description": "Epoch identifier -- wrapped hash, to make it easier to distinguish.\nEpochId of epoch T is the hash of last block in T-2\nEpochId of first two epochs is 0",
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
}Tuple Fields§
§0: CryptoHashTrait Implementations§
Source§impl Deref for EpochId
impl Deref for EpochId
Source§type Target = CryptoHash
type Target = CryptoHash
The resulting type after dereferencing.
Source§fn deref(&self) -> &CryptoHash
fn deref(&self) -> &CryptoHash
Dereferences the value.
Source§impl<'de> Deserialize<'de> for EpochId
impl<'de> Deserialize<'de> for EpochId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CryptoHash> for EpochId
impl From<CryptoHash> for EpochId
Source§fn from(value: CryptoHash) -> Self
fn from(value: CryptoHash) -> Self
Converts to this type from the input type.
Source§impl From<EpochId> for CryptoHash
impl From<EpochId> for CryptoHash
Source§impl From<EpochId> for RpcValidatorRequest
impl From<EpochId> for RpcValidatorRequest
Auto Trait Implementations§
impl Freeze for EpochId
impl RefUnwindSafe for EpochId
impl Send for EpochId
impl Sync for EpochId
impl Unpin for EpochId
impl UnwindSafe for EpochId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)