pub enum DatePerhapsTime {
DateTime(CalendarDateTime),
Date(NaiveDate),
}
Expand description
Either a DATE-TIME
or a DATE
.
Variants§
Implementations§
Source§impl DatePerhapsTime
impl DatePerhapsTime
Sourcepub fn date_naive(&self) -> NaiveDate
pub fn date_naive(&self) -> NaiveDate
Discards time, assumes UTC, and returns an owned instance of a pure date
Trait Implementations§
Source§impl Clone for DatePerhapsTime
impl Clone for DatePerhapsTime
Source§fn clone(&self) -> DatePerhapsTime
fn clone(&self) -> DatePerhapsTime
Returns a copy 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 DatePerhapsTime
impl Debug for DatePerhapsTime
Source§impl From<CalendarDateTime> for DatePerhapsTime
impl From<CalendarDateTime> for DatePerhapsTime
Source§fn from(dt: CalendarDateTime) -> Self
fn from(dt: CalendarDateTime) -> Self
Converts to this type from the input type.
Source§impl From<DatePerhapsTime> for NaiveDate
impl From<DatePerhapsTime> for NaiveDate
Source§fn from(dt: DatePerhapsTime) -> Self
fn from(dt: DatePerhapsTime) -> Self
Converts to this type from the input type.
Source§impl From<NaiveDate> for DatePerhapsTime
impl From<NaiveDate> for DatePerhapsTime
Source§impl From<NaiveDateTime> for DatePerhapsTime
impl From<NaiveDateTime> for DatePerhapsTime
Source§fn from(dt: NaiveDateTime) -> Self
fn from(dt: NaiveDateTime) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DatePerhapsTime
impl PartialEq for DatePerhapsTime
Source§impl TryFrom<&Property<'_>> for DatePerhapsTime
impl TryFrom<&Property<'_>> for DatePerhapsTime
impl Eq for DatePerhapsTime
impl StructuralPartialEq for DatePerhapsTime
Auto Trait Implementations§
impl Freeze for DatePerhapsTime
impl RefUnwindSafe for DatePerhapsTime
impl Send for DatePerhapsTime
impl Sync for DatePerhapsTime
impl Unpin for DatePerhapsTime
impl UnwindSafe for DatePerhapsTime
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