pub struct Timestamp { /* private fields */ }Expand description
Builder for timestamp predicates.
Implementations§
Source§impl Timestamp
impl Timestamp
Sourcepub fn eq<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampRange,
pub fn eq<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampRange,
Matches timestamps equal to the supplied value or range-like date.
Sourcepub fn ne<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampRange,
pub fn ne<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampRange,
Negates an equality predicate.
Sourcepub fn before<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
pub fn before<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
Matches timestamps before the supplied value.
Sourcepub fn after<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
pub fn after<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
Matches timestamps after the supplied value.
Sourcepub fn gte<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
pub fn gte<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
Matches timestamps on or after the supplied value.
Sourcepub fn lte<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
pub fn lte<T>(self, value: T) -> FilterExpressionwhere
T: IntoTimestampPoint,
Matches timestamps on or before the supplied value.
Sourcepub fn between<L, R>(
self,
left: L,
right: R,
inclusive: BetweenInclusivity,
) -> FilterExpressionwhere
L: IntoTimestampPoint,
R: IntoTimestampPoint,
pub fn between<L, R>(
self,
left: L,
right: R,
inclusive: BetweenInclusivity,
) -> FilterExpressionwhere
L: IntoTimestampPoint,
R: IntoTimestampPoint,
Matches timestamps between two values.
Sourcepub fn is_missing(self) -> FilterExpression
pub fn is_missing(self) -> FilterExpression
Matches documents where this timestamp field is absent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.