pub struct TimestampV49 { /* private fields */ }
Implementations§
Source§impl TimestampV49
impl TimestampV49
pub fn now() -> Self
pub const fn zero() -> Self
pub const fn from_nanos(nanos: u64) -> Self
pub fn from_secs_and_nanos(secs: u64, nanos: u32) -> Self
Sourcepub fn as_nanos(&self) -> u64
pub fn as_nanos(&self) -> u64
Returns the total number of nanoseconds represented by this Timestamp
since the Unix
epoch.
Sourcepub fn subsec_nanos(&self) -> u32
pub fn subsec_nanos(&self) -> u32
Returns the fractional nanoseconds represented by this Timestamp
.
Trait Implementations§
Source§impl Clone for TimestampV49
impl Clone for TimestampV49
Source§fn clone(&self) -> TimestampV49
fn clone(&self) -> TimestampV49
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 TimestampV49
impl Debug for TimestampV49
Source§impl Default for TimestampV49
impl Default for TimestampV49
Source§fn default() -> TimestampV49
fn default() -> TimestampV49
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimestampV49
impl<'de> Deserialize<'de> for TimestampV49
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<TimestampV32> for TimestampV49
impl From<TimestampV32> for TimestampV49
Source§fn from(timestamp: TimestampV32) -> Self
fn from(timestamp: TimestampV32) -> Self
Converts to this type from the input type.
Source§impl From<TimestampV49> for Duration
impl From<TimestampV49> for Duration
Source§impl Ord for TimestampV49
impl Ord for TimestampV49
Source§fn cmp(&self, other: &TimestampV49) -> Ordering
fn cmp(&self, other: &TimestampV49) -> 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 TimestampV49
impl PartialEq for TimestampV49
Source§impl PartialOrd for TimestampV49
impl PartialOrd for TimestampV49
Source§impl Serialize for TimestampV49
impl Serialize for TimestampV49
Source§impl TypeFingerprint for TimestampV49
impl TypeFingerprint for TimestampV49
fn fingerprint() -> String
impl Copy for TimestampV49
impl Eq for TimestampV49
impl StructuralPartialEq for TimestampV49
Auto Trait Implementations§
impl Freeze for TimestampV49
impl RefUnwindSafe for TimestampV49
impl Send for TimestampV49
impl Sync for TimestampV49
impl Unpin for TimestampV49
impl UnwindSafe for TimestampV49
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more