Struct google_datastore1::CommitRequest[][src]

pub struct CommitRequest {
    pub transaction: Option<String>,
    pub mutations: Option<Vec<Mutation>>,
    pub mode: Option<String>,
}

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).

Fields

The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.

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 by insert
  • update followed by insert
  • upsert followed by insert
  • delete followed by update

When mode is NON_TRANSACTIONAL, no two mutations may affect a single entity.

The type of commit to perform. Defaults to TRANSACTIONAL.

Trait Implementations

impl Default for CommitRequest
[src]

Returns the "default value" for a type. Read more

impl Clone for CommitRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CommitRequest
[src]

Formats the value using the given formatter. Read more

impl RequestValue for CommitRequest
[src]

Auto Trait Implementations