Struct datastore_grpc::google::datastore::v1::Query[][src]

pub struct Query {
    pub projection: Vec<Projection>,
    pub kind: Vec<KindExpression>,
    pub filter: Option<Filter>,
    pub order: Vec<PropertyOrder>,
    pub distinct_on: Vec<PropertyReference>,
    pub start_cursor: Vec<u8>,
    pub end_cursor: Vec<u8>,
    pub offset: i32,
    pub limit: Option<i32>,
}

A query for entities.

Fields

projection: Vec<Projection>

The projection to return. Defaults to returning all properties.

kind: Vec<KindExpression>

The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.

filter: Option<Filter>

The filter to apply.

order: Vec<PropertyOrder>

The order to apply to the query results (if empty, order is unspecified).

distinct_on: Vec<PropertyReference>

The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned).

start_cursor: Vec<u8>

A starting point for the query results. Query cursors are returned in query result batches and can only be used to continue the same query.

end_cursor: Vec<u8>

An ending point for the query results. Query cursors are returned in query result batches and can only be used to limit the same query.

offset: i32

The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.

limit: Option<i32>

The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.

Trait Implementations

impl Clone for Query[src]

impl Debug for Query[src]

impl Default for Query[src]

impl Message for Query[src]

impl PartialEq<Query> for Query[src]

impl StructuralPartialEq for Query[src]

Auto Trait Implementations

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> 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>, 

impl<T> WithSubscriber for T[src]