Struct google_api_proto::google::spanner::v1::ExecuteBatchDmlRequest
source · pub struct ExecuteBatchDmlRequest {
pub session: String,
pub transaction: Option<TransactionSelector>,
pub statements: Vec<Statement>,
pub seqno: i64,
pub request_options: Option<RequestOptions>,
}
Expand description
The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].
Fields§
§session: String
Required. The session in which the DML statements should be performed.
transaction: Option<TransactionSelector>
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
statements: Vec<Statement>
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
seqno: i64
Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed.
The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.
request_options: Option<RequestOptions>
Common options for this request.
Trait Implementations§
source§impl Clone for ExecuteBatchDmlRequest
impl Clone for ExecuteBatchDmlRequest
source§fn clone(&self) -> ExecuteBatchDmlRequest
fn clone(&self) -> ExecuteBatchDmlRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecuteBatchDmlRequest
impl Debug for ExecuteBatchDmlRequest
source§impl Default for ExecuteBatchDmlRequest
impl Default for ExecuteBatchDmlRequest
source§impl Message for ExecuteBatchDmlRequest
impl Message for ExecuteBatchDmlRequest
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 ExecuteBatchDmlRequest
impl PartialEq for ExecuteBatchDmlRequest
source§fn eq(&self, other: &ExecuteBatchDmlRequest) -> bool
fn eq(&self, other: &ExecuteBatchDmlRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExecuteBatchDmlRequest
Auto Trait Implementations§
impl !Freeze for ExecuteBatchDmlRequest
impl RefUnwindSafe for ExecuteBatchDmlRequest
impl Send for ExecuteBatchDmlRequest
impl Sync for ExecuteBatchDmlRequest
impl Unpin for ExecuteBatchDmlRequest
impl UnwindSafe for ExecuteBatchDmlRequest
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