pub trait FilterDate:
Sized
+ Send
+ Sync
+ 'static {
type Value: IntoExpr<Self> + PartialOrd;
// Required method
fn start_of(date: Date, zone: &TimeZone) -> Option<Self::Value>;
// Provided method
fn exact(value: &str, zone: &TimeZone) -> Option<Self::Value> { ... }
}Expand description
A field type a DateFilter matches by calendar day: jiff::Timestamp (the day in the
request’s time_zone), jiff::civil::Date, jiff::civil::DateTime, and an
Option of any of them.
Required Associated Types§
Sourcetype Value: IntoExpr<Self> + PartialOrd
type Value: IntoExpr<Self> + PartialOrd
The value the field compares against, and orders a range’s ends by.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".