Struct googapis::google::datastore::v1beta3::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>,
}
Expand description
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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Query
impl UnwindSafe for Query
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more