Struct google_datastore1::Mutation
source · pub struct Mutation {
pub insert: Option<Entity>,
pub delete: Option<Key>,
pub update: Option<Entity>,
pub base_version: Option<String>,
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§
§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§
source§impl<'de> Deserialize<'de> for Mutation
impl<'de> Deserialize<'de> for Mutation
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
impl Part for Mutation
Auto Trait Implementations§
impl Freeze for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnwindSafe for Mutation
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