pub struct PartialDateTime {
pub date: NaiveDate,
pub time: Time,
pub offset: Option<FixedOffset>,
}Expand description
A FHIRPath DateTime whose time FHIR’s dateTime cannot hold.
Fields§
§date: NaiveDate§time: Time§offset: Option<FixedOffset>None when the value has no timezone offset.
Implementations§
Source§impl PartialDateTime
impl PartialDateTime
Sourcepub fn local(&self) -> NaiveDateTime
pub fn local(&self) -> NaiveDateTime
The date and clock time as written, the parts below the precision at zero.
Sourcepub fn utc(&self) -> Option<NaiveDateTime>
pub fn utc(&self) -> Option<NaiveDateTime>
The date and clock time in UTC, or as written when there is no offset.
Trait Implementations§
Source§impl Clone for PartialDateTime
impl Clone for PartialDateTime
Source§impl Debug for PartialDateTime
impl Debug for PartialDateTime
Source§impl Display for PartialDateTime
impl Display for PartialDateTime
Source§impl MetaValue for PartialDateTime
A FHIRPath System.DateTime: there is no FHIR type for it.
impl MetaValue for PartialDateTime
A FHIRPath System.DateTime: there is no FHIR type for it.
fn fields(&self) -> Vec<&'static str>
fn get_field<'a>(&'a self, _field: &str) -> Option<&'a dyn MetaValue>
fn get_field_mut<'a>( &'a mut self, _field: &str, ) -> Option<&'a mut dyn MetaValue>
fn get_index(&self, _index: usize) -> Option<&dyn MetaValue>
fn get_index_mut(&mut self, _index: usize) -> Option<&mut dyn MetaValue>
fn flatten(&self) -> Vec<&dyn MetaValue>
fn as_any(&self) -> &dyn Any
fn fhir_type(&self) -> &'static str
fn is_many(&self) -> bool
Source§impl PartialEq for PartialDateTime
impl PartialEq for PartialDateTime
impl StructuralPartialEq for PartialDateTime
Auto Trait Implementations§
impl Freeze for PartialDateTime
impl RefUnwindSafe for PartialDateTime
impl Send for PartialDateTime
impl Sync for PartialDateTime
impl Unpin for PartialDateTime
impl UnsafeUnpin for PartialDateTime
impl UnwindSafe for PartialDateTime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more