pub struct SubstrateTime(pub i64);Expand description
Substrate time representation (nanoseconds since epoch)
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl Clone for SubstrateTime
impl Clone for SubstrateTime
Source§fn clone(&self) -> SubstrateTime
fn clone(&self) -> SubstrateTime
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 moreSource§impl Debug for SubstrateTime
impl Debug for SubstrateTime
Source§impl<'de> Deserialize<'de> for SubstrateTime
impl<'de> Deserialize<'de> for SubstrateTime
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 Ord for SubstrateTime
impl Ord for SubstrateTime
Source§fn cmp(&self, other: &SubstrateTime) -> Ordering
fn cmp(&self, other: &SubstrateTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SubstrateTime
impl PartialEq for SubstrateTime
Source§impl PartialOrd for SubstrateTime
impl PartialOrd for SubstrateTime
Source§impl Serialize for SubstrateTime
impl Serialize for SubstrateTime
Source§impl Sub for SubstrateTime
impl Sub for SubstrateTime
impl Copy for SubstrateTime
impl Eq for SubstrateTime
impl StructuralPartialEq for SubstrateTime
Auto Trait Implementations§
impl Freeze for SubstrateTime
impl RefUnwindSafe for SubstrateTime
impl Send for SubstrateTime
impl Sync for SubstrateTime
impl Unpin for SubstrateTime
impl UnwindSafe for SubstrateTime
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