pub struct CommitRequest {
pub max_commit_delay: Option<Duration>,
pub mutations: Option<Vec<Mutation>>,
pub request_options: Option<RequestOptions>,
pub return_commit_stats: Option<bool>,
pub single_use_transaction: Option<TransactionOptions>,
pub transaction_id: Option<Vec<u8>>,
}
Expand description
The request for Commit.
§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§
§max_commit_delay: Option<Duration>
Optional. The amount of latency this request is configured 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 commit delay value between 0 and 500 ms.
mutations: Option<Vec<Mutation>>
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
request_options: Option<RequestOptions>
Common options for this request.
return_commit_stats: Option<bool>
If true
, then statistics related to the transaction will be included in the CommitResponse. Default value is false
.
single_use_transaction: Option<TransactionOptions>
Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the CommitRequest
is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.
transaction_id: Option<Vec<u8>>
Commit a previously-started transaction.
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§fn default() -> CommitRequest
fn default() -> CommitRequest
Source§impl<'de> Deserialize<'de> for CommitRequest
impl<'de> Deserialize<'de> for CommitRequest
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 CommitRequest
impl Serialize for CommitRequest
impl RequestValue 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
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