pub struct DateTimeUtc(/* private fields */);Implementations§
Source§impl DateTimeUtc
impl DateTimeUtc
pub fn new(value: DateTime<Utc>) -> Self
pub fn from_naive_utc(value: NaiveDateTime) -> Self
pub fn parse(value: &str) -> Result<Self, CanonicalDomainError>
pub fn into_inner(self) -> DateTime<Utc>
pub fn as_inner(&self) -> &DateTime<Utc>
Trait Implementations§
Source§impl Clone for DateTimeUtc
impl Clone for DateTimeUtc
Source§fn clone(&self) -> DateTimeUtc
fn clone(&self) -> DateTimeUtc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DateTimeUtc
Source§impl Debug for DateTimeUtc
impl Debug for DateTimeUtc
Source§impl<'de> Deserialize<'de> for DateTimeUtc
impl<'de> Deserialize<'de> for DateTimeUtc
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 Display for DateTimeUtc
impl Display for DateTimeUtc
impl Eq for DateTimeUtc
Source§impl Hash for DateTimeUtc
impl Hash for DateTimeUtc
Source§impl Ord for DateTimeUtc
impl Ord for DateTimeUtc
Source§fn cmp(&self, other: &DateTimeUtc) -> Ordering
fn cmp(&self, other: &DateTimeUtc) -> Ordering
1.21.0 (const: unstable) · 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 DateTimeUtc
impl PartialEq for DateTimeUtc
Source§impl PartialOrd for DateTimeUtc
impl PartialOrd for DateTimeUtc
Source§impl Serialize for DateTimeUtc
impl Serialize for DateTimeUtc
impl StructuralPartialEq for DateTimeUtc
Auto Trait Implementations§
impl Freeze for DateTimeUtc
impl RefUnwindSafe for DateTimeUtc
impl Send for DateTimeUtc
impl Sync for DateTimeUtc
impl Unpin for DateTimeUtc
impl UnsafeUnpin for DateTimeUtc
impl UnwindSafe for DateTimeUtc
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.