Struct google_api_proto::google::spanner::v1::CommitRequest
source · pub struct CommitRequest {
pub session: String,
pub mutations: Vec<Mutation>,
pub return_commit_stats: bool,
pub max_commit_delay: Option<Duration>,
pub request_options: Option<RequestOptions>,
pub transaction: Option<Transaction>,
}
Expand description
The request for [Commit][google.spanner.v1.Spanner.Commit].
Fields§
§session: String
Required. The session in which the transaction to be committed is running.
mutations: Vec<Mutation>
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
return_commit_stats: bool
If true
, then statistics related to the transaction will be included in
the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats].
Default value is false
.
max_commit_delay: Option<Duration>
Optional. The amount of latency this request is willing to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a batching delay value between 0 and 500 ms.
request_options: Option<RequestOptions>
Common options for this request.
transaction: Option<Transaction>
Required. The transaction in which to commit.
Trait Implementations§
source§impl Clone for CommitRequest
impl Clone for CommitRequest
source§fn clone(&self) -> CommitRequest
fn clone(&self) -> CommitRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommitRequest
impl Debug for CommitRequest
source§impl Default for CommitRequest
impl Default for CommitRequest
source§impl Message for CommitRequest
impl Message for CommitRequest
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 CommitRequest
impl PartialEq for CommitRequest
source§fn eq(&self, other: &CommitRequest) -> bool
fn eq(&self, other: &CommitRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommitRequest
Auto Trait Implementations§
impl !Freeze for CommitRequest
impl RefUnwindSafe for CommitRequest
impl Send for CommitRequest
impl Sync for CommitRequest
impl Unpin for CommitRequest
impl UnwindSafe for CommitRequest
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