pub enum TimestampPrecision {
Year,
Month,
Day,
Hour,
Minute,
Second,
FractionalSecond,
}Expand description
Precision levels for HL7 timestamps
Variants§
Year
Year only (YYYY)
Month
Year and month (YYYYMM)
Day
Full date (YYYYMMDD)
Hour
Date with hour (YYYYMMDDHH)
Minute
Date with hour and minute (YYYYMMDDHHMM)
Second
Full precision to second (YYYYMMDDHHMMSS)
FractionalSecond
With fractional seconds
Trait Implementations§
Source§impl Clone for TimestampPrecision
impl Clone for TimestampPrecision
Source§fn clone(&self) -> TimestampPrecision
fn clone(&self) -> TimestampPrecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimestampPrecision
impl Debug for TimestampPrecision
Source§impl Ord for TimestampPrecision
impl Ord for TimestampPrecision
Source§fn cmp(&self, other: &TimestampPrecision) -> Ordering
fn cmp(&self, other: &TimestampPrecision) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimestampPrecision
impl PartialEq for TimestampPrecision
Source§impl PartialOrd for TimestampPrecision
impl PartialOrd for TimestampPrecision
impl Copy for TimestampPrecision
impl Eq for TimestampPrecision
impl StructuralPartialEq for TimestampPrecision
Auto Trait Implementations§
impl Freeze for TimestampPrecision
impl RefUnwindSafe for TimestampPrecision
impl Send for TimestampPrecision
impl Sync for TimestampPrecision
impl Unpin for TimestampPrecision
impl UnsafeUnpin for TimestampPrecision
impl UnwindSafe for TimestampPrecision
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