pub struct TaiTimestamp(pub ByteArray12);
Expand description
Cryptographic and Timestamp data types
A representation of 12 byte Tai64N monotonic timestamp byte with
default constant time equality checks, hex fmt::Debug
and hex fmt::Display
,
and an implementation for Borsh encoding that ensure
no two binary representations that deserialize into the same object
and a possibly smaller code size compared to serde binary representations.
Tuple Fields§
§0: ByteArray12
Trait Implementations§
Source§impl BorshDeserialize for TaiTimestamp
impl BorshDeserialize for TaiTimestamp
Source§impl BorshSerialize for TaiTimestamp
impl BorshSerialize for TaiTimestamp
Source§impl Clone for TaiTimestamp
impl Clone for TaiTimestamp
Source§fn clone(&self) -> TaiTimestamp
fn clone(&self) -> TaiTimestamp
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 Hash for TaiTimestamp
impl Hash for TaiTimestamp
Source§impl Ord for TaiTimestamp
impl Ord for TaiTimestamp
Source§fn cmp(&self, other: &TaiTimestamp) -> Ordering
fn cmp(&self, other: &TaiTimestamp) -> 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 TaiTimestamp
impl PartialEq for TaiTimestamp
Source§impl PartialOrd for TaiTimestamp
impl PartialOrd for TaiTimestamp
impl Copy for TaiTimestamp
impl Eq for TaiTimestamp
Auto Trait Implementations§
impl Freeze for TaiTimestamp
impl RefUnwindSafe for TaiTimestamp
impl Send for TaiTimestamp
impl Sync for TaiTimestamp
impl Unpin for TaiTimestamp
impl UnwindSafe for TaiTimestamp
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