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 lt(&self, value: impl Into<String>) -> RangeQuery<S>
pub fn lt(&self, value: impl Into<String>) -> RangeQuery<S>
Strictly before value.
Sourcepub fn lte(&self, value: impl Into<String>) -> RangeQuery<S>
pub fn lte(&self, value: impl Into<String>) -> RangeQuery<S>
At or before value.
Sourcepub fn gt(&self, value: impl Into<String>) -> RangeQuery<S>
pub fn gt(&self, value: impl Into<String>) -> RangeQuery<S>
Strictly after value.
Sourcepub fn gte(&self, value: impl Into<String>) -> RangeQuery<S>
pub fn gte(&self, value: impl Into<String>) -> RangeQuery<S>
At or after value.
Sourcepub fn between(
&self,
low: impl Into<String>,
high: impl Into<String>,
) -> RangeQuery<S>
pub fn between( &self, low: impl Into<String>, high: impl Into<String>, ) -> RangeQuery<S>
Inclusive range [low, high].
pub fn asc(&self) -> Sort
pub fn desc(&self) -> Sort
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