pub struct ReadTableRequest {
pub session_id: String,
pub path: String,
pub key_range: Option<KeyRange>,
pub columns: Vec<String>,
pub ordered: bool,
pub row_limit: u64,
pub use_snapshot: i32,
pub batch_limit_bytes: u64,
pub batch_limit_rows: u64,
pub return_not_null_data_as_optional: i32,
}Expand description
Request to read table (without SQL)
Fields§
§session_id: StringSession identifier
path: StringPath to table to read
key_range: Option<KeyRange>Primary key range to read
columns: Vec<String>Output columns
ordered: boolRequire ordered reading
row_limit: u64Limits row count to read
use_snapshot: i32Use a server-side snapshot
batch_limit_bytes: u64Server-side best-effort policy. Can be used as a hint to limit the size of batches sent from a server. If both are specified, the server chooses the smaller one. The limits are not strict, so batch size can be slightly greater than any of the limits
batch_limit_rows: u64§return_not_null_data_as_optional: i32Implementations§
Source§impl ReadTableRequest
impl ReadTableRequest
Sourcepub fn use_snapshot(&self) -> Status
pub fn use_snapshot(&self) -> Status
Returns the enum value of use_snapshot, or the default if the field is set to an invalid enum value.
Sourcepub fn set_use_snapshot(&mut self, value: Status)
pub fn set_use_snapshot(&mut self, value: Status)
Sets use_snapshot to the provided enum value.
Sourcepub fn return_not_null_data_as_optional(&self) -> Status
pub fn return_not_null_data_as_optional(&self) -> Status
Returns the enum value of return_not_null_data_as_optional, or the default if the field is set to an invalid enum value.
Sourcepub fn set_return_not_null_data_as_optional(&mut self, value: Status)
pub fn set_return_not_null_data_as_optional(&mut self, value: Status)
Sets return_not_null_data_as_optional to the provided enum value.
Trait Implementations§
Source§impl Clone for ReadTableRequest
impl Clone for ReadTableRequest
Source§fn clone(&self) -> ReadTableRequest
fn clone(&self) -> ReadTableRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReadTableRequest
impl Debug for ReadTableRequest
Source§impl Default for ReadTableRequest
impl Default for ReadTableRequest
Source§impl<'de> Deserialize<'de> for ReadTableRequest
impl<'de> Deserialize<'de> for ReadTableRequest
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 ReadTableRequest
impl Message for ReadTableRequest
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 ReadTableRequest
impl PartialEq for ReadTableRequest
Source§impl Serialize for ReadTableRequest
impl Serialize for ReadTableRequest
impl StructuralPartialEq for ReadTableRequest
Auto Trait Implementations§
impl Freeze for ReadTableRequest
impl RefUnwindSafe for ReadTableRequest
impl Send for ReadTableRequest
impl Sync for ReadTableRequest
impl Unpin for ReadTableRequest
impl UnwindSafe for ReadTableRequest
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> 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