[][src]Struct firestore_grpc_cloudrun::StructuredQuery

pub struct StructuredQuery {
    pub select: Option<Projection>,
    pub from: Vec<CollectionSelector>,
    pub where: Option<Filter>,
    pub order_by: Vec<Order>,
    pub start_at: Option<Cursor>,
    pub end_at: Option<Cursor>,
    pub offset: i32,
    pub limit: Option<i32>,
}

A Firestore query.

Fields

select: Option<Projection>

The projection to return.

from: Vec<CollectionSelector>

The collections to query.

where: Option<Filter>

The filter to apply.

order_by: Vec<Order>

The order to apply to the query results.

Firestore guarantees a stable ordering through the following rules:

Fields are appended with the same sort direction as the last order specified, or 'ASCENDING' if no order was specified. For example:

start_at: Option<Cursor>

A starting point for the query results.

end_at: Option<Cursor>

A end point for the query results.

offset: i32

The number of results to skip.

Applies before limit, but after all other constraints. Must be >= 0 if specified.

limit: Option<i32>

The maximum number of results to return.

Applies after all other constraints. Must be >= 0 if specified.

Trait Implementations

impl Clone for StructuredQuery[src]

impl Debug for StructuredQuery[src]

impl Default for StructuredQuery[src]

impl Message for StructuredQuery[src]

impl PartialEq<StructuredQuery> for StructuredQuery[src]

impl StructuralPartialEq for StructuredQuery[src]

Auto Trait Implementations

impl RefUnwindSafe for StructuredQuery

impl Send for StructuredQuery

impl Sync for StructuredQuery

impl Unpin for StructuredQuery

impl UnwindSafe for StructuredQuery

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]