Expand description
A human-readable timestamp which is represented/serialized as an RFC3339 when possible, and a microsecond integer count otherwise. Both representations can be deserialized to this type.
Variants
Micros(Timestamp)
A microsecond resolution Timestamp
.
RFC3339(DateTime<Utc>)
A RFC3339 DateTime
.
Trait Implementations
sourceimpl Clone for HumanTimestamp
impl Clone for HumanTimestamp
sourcefn clone(&self) -> HumanTimestamp
fn clone(&self) -> HumanTimestamp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HumanTimestamp
impl Debug for HumanTimestamp
sourceimpl<'de> Deserialize<'de> for HumanTimestamp
impl<'de> Deserialize<'de> for HumanTimestamp
sourcefn 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
sourceimpl From<&HumanTimestamp> for Timestamp
impl From<&HumanTimestamp> for Timestamp
sourcefn from(h: &HumanTimestamp) -> Self
fn from(h: &HumanTimestamp) -> Self
Converts to this type from the input type.
sourceimpl From<DateTime<Utc>> for HumanTimestamp
impl From<DateTime<Utc>> for HumanTimestamp
sourceimpl From<HumanTimestamp> for Timestamp
impl From<HumanTimestamp> for Timestamp
sourcefn from(h: HumanTimestamp) -> Self
fn from(h: HumanTimestamp) -> Self
Converts to this type from the input type.
sourceimpl From<Timestamp> for HumanTimestamp
impl From<Timestamp> for HumanTimestamp
sourceimpl PartialEq<HumanTimestamp> for HumanTimestamp
impl PartialEq<HumanTimestamp> for HumanTimestamp
sourceimpl Serialize for HumanTimestamp
impl Serialize for HumanTimestamp
impl Copy for HumanTimestamp
impl Eq for HumanTimestamp
Auto Trait Implementations
impl RefUnwindSafe for HumanTimestamp
impl Send for HumanTimestamp
impl Sync for HumanTimestamp
impl Unpin for HumanTimestamp
impl UnwindSafe for HumanTimestamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more