Enum fhir_model::Date
source · 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 PartialEq<Date> for Date
impl PartialEq<Date> for Date
source§impl PartialEq<Date> for Date
impl PartialEq<Date> for Date
source§impl PartialEq for Date
impl PartialEq for Date
source§impl PartialOrd<Date> for Date
impl PartialOrd<Date> for Date
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Date> for Date
impl PartialOrd<Date> for Date
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd for Date
impl PartialOrd for Date
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Date
impl StructuralEq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
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