[][src]Struct google_datastore1_beta3::Mutation

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 Clone for Mutation[src]

impl Debug for Mutation[src]

impl Default for Mutation[src]

impl<'de> Deserialize<'de> for Mutation[src]

impl Part for Mutation[src]

impl Serialize for Mutation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any