Struct google_datastore1_beta3::api::Mutation
source · pub struct Mutation {
pub base_version: Option<i64>,
pub delete: Option<Key>,
pub insert: Option<Entity>,
pub update: Option<Entity>,
pub update_time: Option<DateTime<Utc>>,
pub upsert: Option<Entity>,
}
Expand description
A mutation to apply to an entity.
This type is not used in any activity, and only used as part of another schema.
Fields§
§base_version: Option<i64>
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.
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.
insert: Option<Entity>
The entity to insert. The entity must not already exist. The entity key’s final path element may be incomplete.
update: Option<Entity>
The entity to update. The entity must already exist. Must have a complete key path.
update_time: Option<DateTime<Utc>>
The update time of the entity that this mutation is being applied to. If this does not match the current update time 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.