Struct google_datastore1::MutationResult
source · pub struct MutationResult {
pub version: Option<String>,
pub conflict_detected: Option<bool>,
pub key: Option<Key>,
}
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§
§version: Option<String>
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.
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.
key: Option<Key>
The automatically allocated key. Set only when the mutation allocated a key.
Trait Implementations§
source§impl Clone for MutationResult
impl Clone for MutationResult
source§fn clone(&self) -> MutationResult
fn clone(&self) -> MutationResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MutationResult
impl Debug for MutationResult
source§impl Default for MutationResult
impl Default for MutationResult
source§fn default() -> MutationResult
fn default() -> MutationResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MutationResult
impl<'de> Deserialize<'de> for MutationResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for MutationResult
impl Serialize for MutationResult
impl Part for MutationResult
Auto Trait Implementations§
impl Freeze for MutationResult
impl RefUnwindSafe for MutationResult
impl Send for MutationResult
impl Sync for MutationResult
impl Unpin for MutationResult
impl UnwindSafe for MutationResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more