pub enum CalDateTime {
Floating(NaiveDateTime),
Utc(DateTime<Utc>),
Zoned {
tz_name: String,
local: NaiveDateTime,
},
Date(NaiveDate),
}Expand description
Calendar date-time tri-state (RFC 5545 §3.3.5).
Variants§
Floating(NaiveDateTime)
Floating local time — no timezone attached. e.g. DTSTART:19980118T230000.
Utc(DateTime<Utc>)
UTC. e.g. DTSTART:19980119T070000Z.
Zoned
TZID-qualified. e.g. DTSTART;TZID=America/New_York:19980119T020000.
tz_name is the raw TZID string; resolved at evaluation time via
vtimezone (handles both IANA names and inline VTIMEZONE blocks).
Fields
§
local: NaiveDateTimeLocal civil time in that zone.
Date(NaiveDate)
Date-only (RFC 5545 §3.3.4). e.g. DTSTART;VALUE=DATE:19980118.
Trait Implementations§
Source§impl Clone for CalDateTime
impl Clone for CalDateTime
Source§fn clone(&self) -> CalDateTime
fn clone(&self) -> CalDateTime
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 moreSource§impl Debug for CalDateTime
impl Debug for CalDateTime
Source§impl PartialEq for CalDateTime
impl PartialEq for CalDateTime
Source§fn eq(&self, other: &CalDateTime) -> bool
fn eq(&self, other: &CalDateTime) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CalDateTime
impl Serialize for CalDateTime
impl Eq for CalDateTime
impl StructuralPartialEq for CalDateTime
Auto Trait Implementations§
impl Freeze for CalDateTime
impl RefUnwindSafe for CalDateTime
impl Send for CalDateTime
impl Sync for CalDateTime
impl Unpin for CalDateTime
impl UnsafeUnpin for CalDateTime
impl UnwindSafe for CalDateTime
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