Struct google_datastore1::api::MutationResult
source · pub struct MutationResult {
pub conflict_detected: Option<bool>,
pub create_time: Option<DateTime<Utc>>,
pub key: Option<Key>,
pub update_time: Option<DateTime<Utc>>,
pub version: Option<i64>,
}
Expand description
The result of applying a mutation.
This type is not used in any activity, and only used as part of another schema.
Fields§
§conflict_detected: Option<bool>
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
create_time: Option<DateTime<Utc>>
The create time of the entity. This field will not be set after a ‘delete’.
key: Option<Key>
The automatically allocated key. Set only when the mutation allocated a key.
update_time: Option<DateTime<Utc>>
The update time of the entity on the server after processing the mutation. If the mutation doesn’t change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a ‘delete’.
version: Option<i64>
The version of the entity on the server after processing the mutation. If the mutation doesn’t change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
Trait Implementations§
source§impl Clone for MutationResult
impl Clone for MutationResult
source§fn clone(&self) -> MutationResult
fn clone(&self) -> MutationResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more