pub struct Query {
pub distinct_on: Option<Vec<PropertyReference>>,
pub end_cursor: Option<Vec<u8>>,
pub filter: Option<Filter>,
pub kind: Option<Vec<KindExpression>>,
pub limit: Option<i32>,
pub offset: Option<i32>,
pub order: Option<Vec<PropertyOrder>>,
pub projection: Option<Vec<Projection>>,
pub start_cursor: Option<Vec<u8>>,
}
Expand description
A query for entities.
This type is not used in any activity, and only used as part of another schema.
Fields§
§distinct_on: Option<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). Requires: * If order
is specified, the set of distinct on properties must appear before the non-distinct on properties in order
.
end_cursor: Option<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.
filter: Option<Filter>
The filter to apply.
kind: Option<Vec<KindExpression>>
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be 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.
offset: Option<i32>
The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.
order: Option<Vec<PropertyOrder>>
The order to apply to the query results (if empty, order is unspecified).
projection: Option<Vec<Projection>>
The projection to return. Defaults to returning all properties.
start_cursor: Option<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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part 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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more