pub enum TemporalValue {
Duration {
months: i64,
days: i64,
seconds: i64,
nanos: i64,
},
UtcDateTime {
epoch_micros: i64,
},
Date {
epoch_days: i64,
},
LocalDateTime {
epoch_days: i64,
nanos: i64,
},
LocalTime {
nanos: i64,
},
OffsetTime {
nanos: i64,
offset_seconds: i32,
},
ZonedDateTime {
epoch_days: i64,
nanos: i64,
offset_seconds: i32,
zone: Option<String>,
},
}Expand description
Consumer-neutral temporal values accepted at GraphForge data boundaries.
Calendar and wall-clock components remain separate: durations are never collapsed into elapsed nanoseconds, and zone-bearing datetimes retain both the observed UTC offset and optional IANA zone identifier.
Variants§
Duration
Calendar duration with independent months, days, seconds, and nanoseconds.
Fields
UtcDateTime
UTC instant as microseconds from the Unix epoch.
Date
Calendar date as days from the Unix epoch.
LocalDateTime
Local date and time without an offset or zone.
LocalTime
Local wall-clock time without an offset.
OffsetTime
Wall-clock time with its explicit UTC offset in seconds.
Fields
ZonedDateTime
Date and time with an explicit offset and optional IANA zone identity.
Implementations§
Trait Implementations§
Source§impl Clone for TemporalValue
impl Clone for TemporalValue
Source§impl Debug for TemporalValue
impl Debug for TemporalValue
Source§impl<'de> Deserialize<'de> for TemporalValue
impl<'de> Deserialize<'de> for TemporalValue
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
impl Eq for TemporalValue
Source§impl PartialEq for TemporalValue
impl PartialEq for TemporalValue
Source§impl Serialize for TemporalValue
impl Serialize for TemporalValue
impl StructuralPartialEq for TemporalValue
Auto Trait Implementations§
impl Freeze for TemporalValue
impl RefUnwindSafe for TemporalValue
impl Send for TemporalValue
impl Sync for TemporalValue
impl Unpin for TemporalValue
impl UnsafeUnpin for TemporalValue
impl UnwindSafe for TemporalValue
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,
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.