pub enum DateFilter {
Show 25 variants
ExactMatch(Date),
Range(Date, Date),
LessThanOrEqual(Date),
GreaterThanOrEqual(Date),
LessThanDaysAgo(u32),
MoreThanDaysAgo(u32),
WithinPastDays(u32),
ExactDaysAgo(u32),
InLessThanDays(u32),
InMoreThanDays(u32),
WithinFutureDays(u32),
InExactDays(u32),
Today,
Yesterday,
Tomorrow,
ThisWeek,
LastWeek,
LastTwoWeeks,
NextWeek,
ThisMonth,
LastMonth,
NextMonth,
ThisYear,
Unset,
Any,
}Expand description
Filter for a comparable date filters for past or future dates used for filters on start_date and due_date
Variants§
ExactMatch(Date)
an exact match
Range(Date, Date)
a range match (inclusive)
LessThanOrEqual(Date)
we only want values less than or equal to the parameter
GreaterThanOrEqual(Date)
we only want values greater than or equal to the parameter
LessThanDaysAgo(u32)
less than n days ago
MoreThanDaysAgo(u32)
more than n days ago
WithinPastDays(u32)
within the past n days
ExactDaysAgo(u32)
exactly n days ago
InLessThanDays(u32)
in less than n days
InMoreThanDays(u32)
in more than n days
WithinFutureDays(u32)
in the next n days
InExactDays(u32)
in exactly n days
Today
today
Yesterday
yesterday
Tomorrow
tomorrow
ThisWeek
this week
LastWeek
last week
LastTwoWeeks
last 2 weeks
NextWeek
next week
ThisMonth
this month
LastMonth
last month
NextMonth
next month
ThisYear
this year
Unset
unset value (NULL in DB)
Any
any value (NOT NULL in DB)
Trait Implementations§
Source§impl Clone for DateFilter
impl Clone for DateFilter
Source§fn clone(&self) -> DateFilter
fn clone(&self) -> DateFilter
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 DateFilter
impl Debug for DateFilter
Auto Trait Implementations§
impl Freeze for DateFilter
impl RefUnwindSafe for DateFilter
impl Send for DateFilter
impl Sync for DateFilter
impl Unpin for DateFilter
impl UnwindSafe for DateFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.