pub struct DateRange {
pub start: Option<NaiveDate>,
pub end: Option<NaiveDate>,
}
Expand description
Half-open range of the date for the query result.
If any of start
or end
is set as None
,
those are treated as -infinity, +infinity respectively.
Fields§
§start: Option<NaiveDate>
Start of the range (inclusive), if exists.
end: Option<NaiveDate>
End of the range (exclusive), if exists.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DateRange
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnwindSafe for DateRange
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