Struct google_spanner1::ReadRequest
source · pub struct ReadRequest {
pub index: Option<String>,
pub transaction: Option<TransactionSelector>,
pub limit: Option<String>,
pub key_set: Option<KeySet>,
pub table: Option<String>,
pub resume_token: Option<String>,
pub columns: Option<Vec<String>>,
}
Expand description
The request for Read and StreamingRead.
§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§
§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.
transaction: Option<TransactionSelector>
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
limit: Option<String>
If greater than zero, only the first limit
rows are yielded. If limit
is zero, the default is no limit.
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.
Rows are yielded in table primary key order (if index is empty) or index key order (if index is non-empty).
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.
table: Option<String>
Required. The name of the table in the database to be read.
resume_token: Option<String>
If this request is resuming a previously interrupted read,
resume_token
should be copied from the last
PartialResultSet yielded before the interruption. Doing this
enables the new read to resume where the last read left off. The
rest of the request parameters must exactly match the request
that yielded this token.
columns: Option<Vec<String>>
The columns of table to be returned for each row matching this request.
Trait Implementations§
source§impl Clone for ReadRequest
impl Clone for ReadRequest
source§fn clone(&self) -> ReadRequest
fn clone(&self) -> ReadRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadRequest
impl Debug for ReadRequest
source§impl Default for ReadRequest
impl Default for ReadRequest
source§fn default() -> ReadRequest
fn default() -> ReadRequest
source§impl<'de> Deserialize<'de> for ReadRequest
impl<'de> Deserialize<'de> for ReadRequest
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 ReadRequest
impl Serialize for ReadRequest
impl RequestValue for ReadRequest
Auto Trait Implementations§
impl Freeze for ReadRequest
impl RefUnwindSafe for ReadRequest
impl Send for ReadRequest
impl Sync for ReadRequest
impl Unpin for ReadRequest
impl UnwindSafe for ReadRequest
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> 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