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::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Date, D::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
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 UnsafeUnpin 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