pub struct DateTimeRfc3339(pub DateTime<Utc>);Tuple Fields§
§0: DateTime<Utc>Implementations§
Source§impl DateTimeRfc3339
impl DateTimeRfc3339
pub fn now() -> Self
pub fn from_naive(naive: NaiveDateTime) -> Self
pub fn from_naive_date(naive: NaiveDate) -> Self
Trait Implementations§
Source§impl Clone for DateTimeRfc3339
impl Clone for DateTimeRfc3339
Source§fn clone(&self) -> DateTimeRfc3339
fn clone(&self) -> DateTimeRfc3339
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 DateTimeRfc3339
impl Debug for DateTimeRfc3339
Source§impl<'de> Deserialize<'de> for DateTimeRfc3339
impl<'de> Deserialize<'de> for DateTimeRfc3339
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 FromStr for DateTimeRfc3339
impl FromStr for DateTimeRfc3339
Source§impl Ord for DateTimeRfc3339
impl Ord for DateTimeRfc3339
Source§fn cmp(&self, other: &DateTimeRfc3339) -> Ordering
fn cmp(&self, other: &DateTimeRfc3339) -> 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 DateTimeRfc3339
impl PartialEq for DateTimeRfc3339
Source§impl PartialOrd for DateTimeRfc3339
impl PartialOrd for DateTimeRfc3339
Source§impl Serialize for DateTimeRfc3339
impl Serialize for DateTimeRfc3339
Source§impl ToString for DateTimeRfc3339
impl ToString for DateTimeRfc3339
impl Eq for DateTimeRfc3339
impl StructuralPartialEq for DateTimeRfc3339
Auto Trait Implementations§
impl Freeze for DateTimeRfc3339
impl RefUnwindSafe for DateTimeRfc3339
impl Send for DateTimeRfc3339
impl Sync for DateTimeRfc3339
impl Unpin for DateTimeRfc3339
impl UnwindSafe for DateTimeRfc3339
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.