[][src]Struct google_spanner1::Mutation

pub struct Mutation {
    pub insert: Option<Write>,
    pub delete: Option<Delete>,
    pub insert_or_update: Option<Write>,
    pub update: Option<Write>,
    pub replace: Option<Write>,
}

A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.

This type is not used in any activity, and only used as part of another schema.

Fields

insert: Option<Write>

Insert new rows in a table. If any of the rows already exist, the write or transaction fails with error ALREADY_EXISTS.

delete: Option<Delete>

Delete rows from a table. Succeeds whether or not the named rows were present.

insert_or_update: Option<Write>

Like insert, except that if the row already exists, then its column values are overwritten with the ones provided. Any column values not explicitly written are preserved.

update: Option<Write>

Update existing rows in a table. If any of the rows does not already exist, the transaction fails with error NOT_FOUND.

replace: Option<Write>

Like insert, except that if the row already exists, it is deleted, and the column values provided are inserted instead. Unlike insert_or_update, this means any values not explicitly written become NULL.

Trait Implementations

impl Part for Mutation[src]

impl Default for Mutation[src]

impl Clone for Mutation[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Mutation[src]

impl Serialize for Mutation[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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