pub struct PartitionReadRequest {
pub columns: Option<Vec<String>>,
pub index: Option<String>,
pub key_set: Option<KeySet>,
pub partition_options: Option<PartitionOptions>,
pub table: Option<String>,
pub transaction: Option<TransactionSelector>,
}
Expand description
The request for PartitionRead
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§columns: Option<Vec<String>>
The columns of table to be returned for each row matching this request.
index: Option<String>
If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.
key_set: Option<KeySet>
Required. key_set
identifies the rows to be yielded. key_set
names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. It is not an error for the key_set
to name rows that do not exist in the database. Read yields nothing for nonexistent rows.
partition_options: Option<PartitionOptions>
Additional options that affect how many partitions are created.
table: Option<String>
Required. The name of the table in the database to be read.
transaction: Option<TransactionSelector>
Read only snapshot transactions are supported, read/write and single use transactions are not.
Trait Implementations§
Source§impl Clone for PartitionReadRequest
impl Clone for PartitionReadRequest
Source§fn clone(&self) -> PartitionReadRequest
fn clone(&self) -> PartitionReadRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartitionReadRequest
impl Debug for PartitionReadRequest
Source§impl Default for PartitionReadRequest
impl Default for PartitionReadRequest
Source§fn default() -> PartitionReadRequest
fn default() -> PartitionReadRequest
Source§impl<'de> Deserialize<'de> for PartitionReadRequest
impl<'de> Deserialize<'de> for PartitionReadRequest
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 PartitionReadRequest
impl Serialize for PartitionReadRequest
impl RequestValue for PartitionReadRequest
Auto Trait Implementations§
impl Freeze for PartitionReadRequest
impl RefUnwindSafe for PartitionReadRequest
impl Send for PartitionReadRequest
impl Sync for PartitionReadRequest
impl Unpin for PartitionReadRequest
impl UnwindSafe for PartitionReadRequest
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