pub struct Date<S = Root> { /* private fields */ }Expand description
A date/timestamp field. Bounds are ISO-8601 strings.
Implementations§
Source§impl<S> Date<S>
impl<S> Date<S>
pub fn at(path: impl Into<String>) -> Self
Sourcepub fn eq(&self, value: impl FlussoValue<Date>) -> EqQuery<S>
pub fn eq(&self, value: impl FlussoValue<Date>) -> EqQuery<S>
Exact match. Accepts a String/&str, or — with the chrono feature —
a NaiveDate / NaiveDateTime / DateTime<Utc>.
Sourcepub fn any_of(
&self,
values: impl IntoIterator<Item = impl FlussoValue<Date>>,
) -> TermsQuery<S>
pub fn any_of( &self, values: impl IntoIterator<Item = impl FlussoValue<Date>>, ) -> TermsQuery<S>
Match any of the given dates (String/&str or chrono date types).
Sourcepub fn lt(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
pub fn lt(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
Strictly before value.
Sourcepub fn lte(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
pub fn lte(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
At or before value.
Sourcepub fn gt(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
pub fn gt(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
Strictly after value.
Sourcepub fn gte(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
pub fn gte(&self, value: impl FlussoValue<Date>) -> RangeQuery<S>
At or after value.
Sourcepub fn between(
&self,
low: impl FlussoValue<Date>,
high: impl FlussoValue<Date>,
) -> RangeQuery<S>
pub fn between( &self, low: impl FlussoValue<Date>, high: impl FlussoValue<Date>, ) -> RangeQuery<S>
Inclusive range [low, high].
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Date<S>
impl<S> RefUnwindSafe for Date<S>
impl<S> Send for Date<S>
impl<S> Sync for Date<S>
impl<S> Unpin for Date<S>
impl<S> UnsafeUnpin for Date<S>
impl<S> UnwindSafe for Date<S>
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