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: Bytes,
pub end_cursor: Bytes,
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: Bytes
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: Bytes
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§
source§impl Message for Query
impl Message for Query
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Query
impl PartialEq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl !Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request