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<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 for DatePerhapsTime
impl PartialEq 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 ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)