pub struct QueryResultBatch {
pub end_cursor: Option<Vec<u8>>,
pub entity_result_type: Option<String>,
pub entity_results: Option<Vec<EntityResult>>,
pub more_results: Option<String>,
pub read_time: Option<DateTime<Utc>>,
pub skipped_cursor: Option<Vec<u8>>,
pub skipped_results: Option<i32>,
pub snapshot_version: Option<i64>,
}
Expand description
A batch of results produced by a query.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_cursor: Option<Vec<u8>>
A cursor that points to the position after the last result in the batch.
entity_result_type: Option<String>
The result type for every entity in entity_results
.
entity_results: Option<Vec<EntityResult>>
The results for this batch.
more_results: Option<String>
The state of the query after the current batch.
read_time: Option<DateTime<Utc>>
Read timestamp this batch was returned from. This applies to the range of results from the query’s start_cursor
(or the beginning of the query if no cursor was given) to this batch’s end_cursor
(not the query’s end_cursor
). In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch’s read timestamp is valid for all preceding batches. This value will not be set for eventually consistent queries in Cloud Datastore.
skipped_cursor: Option<Vec<u8>>
A cursor that points to the position after the last skipped result. Will be set when skipped_results
!= 0.
skipped_results: Option<i32>
The number of results skipped, typically because of an offset.
snapshot_version: Option<i64>
The version number of the snapshot this batch was returned from. This applies to the range of results from the query’s start_cursor
(or the beginning of the query if no cursor was given) to this batch’s end_cursor
(not the query’s end_cursor
). In a single transaction, subsequent query result batches for the same query can have a greater snapshot version number. Each batch’s snapshot version is valid for all preceding batches. The value will be zero for eventually consistent queries.
Trait Implementations§
Source§impl Clone for QueryResultBatch
impl Clone for QueryResultBatch
Source§fn clone(&self) -> QueryResultBatch
fn clone(&self) -> QueryResultBatch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for QueryResultBatch
impl Debug for QueryResultBatch
Source§impl Default for QueryResultBatch
impl Default for QueryResultBatch
Source§fn default() -> QueryResultBatch
fn default() -> QueryResultBatch
Source§impl<'de> Deserialize<'de> for QueryResultBatch
impl<'de> Deserialize<'de> for QueryResultBatch
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>,
Source§impl Serialize for QueryResultBatch
impl Serialize for QueryResultBatch
impl Part for QueryResultBatch
Auto Trait Implementations§
impl Freeze for QueryResultBatch
impl RefUnwindSafe for QueryResultBatch
impl Send for QueryResultBatch
impl Sync for QueryResultBatch
impl Unpin for QueryResultBatch
impl UnwindSafe for QueryResultBatch
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