Struct chain_impl_mockchain::block::BlockDate
source · pub struct BlockDate {
pub epoch: Epoch,
pub slot_id: SlotId,
}
Expand description
Non unique identifier of the transaction position in the
blockchain. There may be many transactions related to the same
SlotId
.
Fields§
§epoch: Epoch
§slot_id: SlotId
Implementations§
Trait Implementations§
source§impl BlockDate for BlockDate
impl BlockDate for BlockDate
fn from_epoch_slot_id(epoch: Epoch, slot_id: SlotId) -> Self
source§impl From<EpochPosition> for BlockDate
impl From<EpochPosition> for BlockDate
source§fn from(e: EpochPosition) -> BlockDate
fn from(e: EpochPosition) -> BlockDate
Converts to this type from the input type.
source§impl Ord for BlockDate
impl Ord for BlockDate
source§impl PartialEq<BlockDate> for BlockDate
impl PartialEq<BlockDate> for BlockDate
source§impl PartialOrd<BlockDate> for BlockDate
impl PartialOrd<BlockDate> for BlockDate
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BlockDate
impl Eq for BlockDate
impl StructuralEq for BlockDate
impl StructuralPartialEq for BlockDate
Auto Trait Implementations§
impl RefUnwindSafe for BlockDate
impl Send for BlockDate
impl Sync for BlockDate
impl Unpin for BlockDate
impl UnwindSafe for BlockDate
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