pub struct DateValue {
pub calendar: String,
pub start: DatePoint,
pub end: DatePoint,
}Expand description
Calendar-aware date value, optionally a range.
start and end are both present on every DateValue; a single-point date
has start == end (field-by-field). The renderer collapses equal start/end to
a single point display (<point> (<Calendar>)).
Fields§
§calendar: StringCalendar system (e.g. "GREGORIAN", "JULIAN", "ISLAMIC").
start: DatePointStart of the date range (inclusive).
end: DatePointEnd of the date range (inclusive). Equal to start for a single-point date.
Trait Implementations§
impl StructuralPartialEq for DateValue
Auto Trait Implementations§
impl Freeze for DateValue
impl RefUnwindSafe for DateValue
impl Send for DateValue
impl Sync for DateValue
impl Unpin for DateValue
impl UnsafeUnpin for DateValue
impl UnwindSafe for DateValue
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