Struct google_api_proto::google::datastore::v1beta3::QueryResultBatch
source · pub struct QueryResultBatch {
pub skipped_results: i32,
pub skipped_cursor: Bytes,
pub entity_result_type: i32,
pub entity_results: Vec<EntityResult>,
pub end_cursor: Bytes,
pub more_results: i32,
pub snapshot_version: i64,
}
Expand description
A batch of results produced by a query.
Fields§
§skipped_results: i32
The number of results skipped, typically because of an offset.
skipped_cursor: Bytes
A cursor that points to the position after the last skipped result.
Will be set when skipped_results
!= 0.
entity_result_type: i32
The result type for every entity in entity_results
.
entity_results: Vec<EntityResult>
The results for this batch.
end_cursor: Bytes
A cursor that points to the position after the last result in the batch.
more_results: i32
The state of the query after the current batch.
snapshot_version: 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.
Implementations§
source§impl QueryResultBatch
impl QueryResultBatch
sourcepub fn entity_result_type(&self) -> ResultType
pub fn entity_result_type(&self) -> ResultType
Returns the enum value of entity_result_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_entity_result_type(&mut self, value: ResultType)
pub fn set_entity_result_type(&mut self, value: ResultType)
Sets entity_result_type
to the provided enum value.
sourcepub fn more_results(&self) -> MoreResultsType
pub fn more_results(&self) -> MoreResultsType
Returns the enum value of more_results
, or the default if the field is set to an invalid enum value.
sourcepub fn set_more_results(&mut self, value: MoreResultsType)
pub fn set_more_results(&mut self, value: MoreResultsType)
Sets more_results
to the provided enum value.
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§impl Message for QueryResultBatch
impl Message for QueryResultBatch
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 QueryResultBatch
impl PartialEq for QueryResultBatch
source§fn eq(&self, other: &QueryResultBatch) -> bool
fn eq(&self, other: &QueryResultBatch) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§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