Struct google_datastore1::Mutation [−][src]
pub struct Mutation { pub insert: Option<Entity>, pub delete: Option<Key>, pub update: Option<Entity>, pub base_version: Option<String>, pub upsert: Option<Entity>, }
A mutation to apply to an entity.
This type is not used in any activity, and only used as part of another schema.
Fields
insert: Option<Entity>
The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
delete: Option<Key>
The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.
update: Option<Entity>
The entity to update. The entity must already exist. Must have a complete key path.
base_version: Option<String>
The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.
upsert: Option<Entity>
The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
Trait Implementations
impl Default for Mutation
[src]
impl Default for Mutation
impl Clone for Mutation
[src]
impl Clone for Mutation
fn clone(&self) -> Mutation
[src]
fn clone(&self) -> Mutation
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 Mutation
[src]
impl Debug for Mutation
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 Part for Mutation
[src]
impl Part for Mutation