pub struct Period(pub Box<PeriodInner>);
Expand description
Period Type: A time period defined by a start and end date and optionally time.
Period v5.0.0
Time range defined by start and end date/time
A time period defined by a start and end date and optionally time.
A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. “the patient was an inpatient of the hospital for this time range”) or one value from the range applies (e.g. “give to the patient between these two times”).
Period is not used for a duration (a measure of elapsed time). See Duration.
Tuple Fields§
§0: Box<PeriodInner>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Period
impl<'de> Deserialize<'de> for Period
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Period, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Period, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PeriodInner> for Period
impl From<PeriodInner> for Period
Source§fn from(inner: PeriodInner) -> Period
fn from(inner: PeriodInner) -> Period
Converts to this type from the input type.
Source§impl Serialize for Period
impl Serialize for Period
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Period
Auto Trait Implementations§
impl Freeze for Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnwindSafe for Period
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