Struct jormungandr_lib::interfaces::TimeEraDef
source · pub struct TimeEraDef {
epoch_start: Epoch,
slot_start: Slot,
slots_per_epoch: u32,
}
Fields§
§epoch_start: Epoch
§slot_start: Slot
§slots_per_epoch: u32
Implementations§
source§impl TimeEraDef
impl TimeEraDef
source§impl<'de> TimeEraDef
impl<'de> TimeEraDef
pub fn deserialize<__D>(__deserializer: __D) -> Result<TimeEra, __D::Error>where __D: Deserializer<'de>,
Trait Implementations§
source§impl Clone for TimeEraDef
impl Clone for TimeEraDef
source§fn clone(&self) -> TimeEraDef
fn clone(&self) -> TimeEraDef
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 TimeEraDef
impl Debug for TimeEraDef
source§impl From<TimeEraDef> for TimeEra
impl From<TimeEraDef> for TimeEra
source§fn from(val: TimeEraDef) -> Self
fn from(val: TimeEraDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TimeEraDef
impl Send for TimeEraDef
impl Sync for TimeEraDef
impl Unpin for TimeEraDef
impl UnwindSafe for TimeEraDef
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