Enum icalendar::DatePerhapsTime
source · pub enum DatePerhapsTime {
DateTime(CalendarDateTime),
Date(NaiveDate),
}
Expand description
Either a DATE-TIME
or a DATE
.
Variants§
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<(NaiveDateTime, Tz)> for DatePerhapsTime
impl From<(NaiveDateTime, Tz)> for DatePerhapsTime
source§fn from(both: (NaiveDateTime, Tz)) -> Self
fn from(both: (NaiveDateTime, Tz)) -> Self
Converts to this type from the input type.
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<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<DatePerhapsTime> for DatePerhapsTime
impl PartialEq<DatePerhapsTime> for DatePerhapsTime
source§fn eq(&self, other: &DatePerhapsTime) -> bool
fn eq(&self, other: &DatePerhapsTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.