Struct google_datastore1::CommitRequest [−][src]
pub struct CommitRequest { pub transaction: Option<String>, pub mode: Option<String>, pub mutations: Option<Vec<Mutation>>, }
The request for Datastore.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).
- commit projects (request)
Fields
transaction: Option<String>
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
mode: Option<String>
The type of commit to perform. Defaults to TRANSACTIONAL
.
mutations: Option<Vec<Mutation>>
The mutations to perform.
When mode is TRANSACTIONAL
, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit
request:
insert
followed byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode is NON_TRANSACTIONAL
, no two mutations may affect a single
entity.
Trait Implementations
impl Default for CommitRequest
[src]
impl Default for CommitRequest
fn default() -> CommitRequest
[src]
fn default() -> CommitRequest
Returns the "default value" for a type. Read more
impl Clone for CommitRequest
[src]
impl Clone for CommitRequest
fn clone(&self) -> CommitRequest
[src]
fn clone(&self) -> CommitRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for CommitRequest
[src]
impl Debug for CommitRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for CommitRequest
[src]
impl RequestValue for CommitRequest
Auto Trait Implementations
impl Send for CommitRequest
impl Send for CommitRequest
impl Sync for CommitRequest
impl Sync for CommitRequest