pub enum FirestoreQueryFilter {
Composite(FirestoreQueryFilterComposite),
Unary(FirestoreQueryFilterUnary),
Compare(Option<FirestoreQueryFilterCompare>),
}Expand description
Re-exports all public items from the db module.
The db module contains the core FirestoreDb client and
functionalities for interacting with the Firestore database, such as CRUD operations,
queries, and transactions.
Represents a filter condition for a Firestore query.
Filters are used to narrow down the documents returned by a query based on conditions applied to their fields.
Variants§
Composite(FirestoreQueryFilterComposite)
A composite filter that combines multiple sub-filters using an operator (AND/OR).
Unary(FirestoreQueryFilterUnary)
A unary filter that applies an operation to a single field (e.g., IS NULL, IS NAN).
Compare(Option<FirestoreQueryFilterCompare>)
A field filter that compares a field to a value (e.g., equality, greater than).
The Option allows for representing an effectively empty or no-op filter,
which can be useful in dynamic filter construction.
Trait Implementations§
Source§impl Clone for FirestoreQueryFilter
impl Clone for FirestoreQueryFilter
Source§fn clone(&self) -> FirestoreQueryFilter
fn clone(&self) -> FirestoreQueryFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FirestoreQueryFilter
impl Debug for FirestoreQueryFilter
Source§impl FirestoreQueryFilterExpr for FirestoreQueryFilter
impl FirestoreQueryFilterExpr for FirestoreQueryFilter
Source§fn build_filter(self) -> Option<FirestoreQueryFilter>
fn build_filter(self) -> Option<FirestoreQueryFilter>
Builds the
FirestoreQueryFilter.
Returns None if the expression represents an empty or no-op filter.Source§impl From<FirestoreQueryFilter> for Filter
impl From<FirestoreQueryFilter> for Filter
Source§fn from(filter: FirestoreQueryFilter) -> Self
fn from(filter: FirestoreQueryFilter) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FirestoreQueryFilter
impl PartialEq for FirestoreQueryFilter
impl StructuralPartialEq for FirestoreQueryFilter
Auto Trait Implementations§
impl Freeze for FirestoreQueryFilter
impl RefUnwindSafe for FirestoreQueryFilter
impl Send for FirestoreQueryFilter
impl Sync for FirestoreQueryFilter
impl Unpin for FirestoreQueryFilter
impl UnsafeUnpin for FirestoreQueryFilter
impl UnwindSafe for FirestoreQueryFilter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request