Struct bigtable_rs::google::bigtable::v2::ReadRowsResponse
source · pub struct ReadRowsResponse {
pub chunks: Vec<CellChunk>,
pub last_scanned_row_key: Vec<u8>,
pub request_stats: Option<RequestStats>,
}
Expand description
Response message for Bigtable.ReadRows.
Fields§
§chunks: Vec<CellChunk>
A collection of a row’s contents as part of the read request.
last_scanned_row_key: Vec<u8>
Optionally the server might return the row key of the last row it has scanned. The client can use this to construct a more efficient retry request if needed: any row keys or portions of ranges less than this row key can be dropped from the request. This is primarily useful for cases where the server has read a lot of data that was filtered out since the last committed row key, allowing the client to skip that work on a retry.
request_stats: Option<RequestStats>
If requested, provide enhanced query performance statistics. The semantics dictate:
- request_stats is empty on every (streamed) response, except
- request_stats has non-empty information after all chunks have been
streamed, where the ReadRowsResponse message only contains
request_stats.
- For example, if a read request would have returned an empty response instead a single ReadRowsResponse is streamed with empty chunks and request_stats filled.
Visually, response messages will stream as follows: … -> {chunks: […]} -> {chunks: [], request_stats: {…}} _/ ___________/ Primary response Trailer of RequestStats info
Or if the read did not return any values: {chunks: [], request_stats: {…}} ________________________________/ Trailer of RequestStats info
Trait Implementations§
source§impl Clone for ReadRowsResponse
impl Clone for ReadRowsResponse
source§fn clone(&self) -> ReadRowsResponse
fn clone(&self) -> ReadRowsResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadRowsResponse
impl Debug for ReadRowsResponse
source§impl Default for ReadRowsResponse
impl Default for ReadRowsResponse
source§impl<'de> Deserialize<'de> for ReadRowsResponse
impl<'de> Deserialize<'de> for ReadRowsResponse
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 Message for ReadRowsResponse
impl Message for ReadRowsResponse
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 ReadRowsResponse
impl PartialEq for ReadRowsResponse
source§fn eq(&self, other: &ReadRowsResponse) -> bool
fn eq(&self, other: &ReadRowsResponse) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReadRowsResponse
impl Serialize for ReadRowsResponse
impl StructuralPartialEq for ReadRowsResponse
Auto Trait Implementations§
impl Freeze for ReadRowsResponse
impl RefUnwindSafe for ReadRowsResponse
impl Send for ReadRowsResponse
impl Sync for ReadRowsResponse
impl Unpin for ReadRowsResponse
impl UnwindSafe for ReadRowsResponse
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> 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