pub enum Date {
Year(i32),
YearMonth(i32, Month),
Date(Date),
}
Expand description
FHIR date type: https://hl7.org/fhir/datatypes.html#date
Variants§
Year(i32)
Date in the format of YYYY
YearMonth(i32, Month)
Date in the format of YYYY-MM
Date(Date)
Date in the format of YYYY-MM-DD
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Date
impl<'de> Deserialize<'de> for Date
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Date, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Date, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize date.
Source§impl PartialOrd<Date> for Date
impl PartialOrd<Date> for Date
Source§impl PartialOrd<Date> for Date
impl PartialOrd<Date> for Date
Source§impl PartialOrd for Date
impl PartialOrd for Date
Source§impl Serialize for Date
impl Serialize for Date
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 date.
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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§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.