pub struct Write {
pub columns: Option<Vec<String>>,
pub table: Option<String>,
pub values: Option<Vec<Vec<Value>>>,
}
Expand description
Arguments to insert, update, insert_or_update, and replace operations.
This type is not used in any activity, and only used as part of another schema.
Fields§
§columns: Option<Vec<String>>
The names of the columns in table to be written. The list of columns must contain enough columns to allow Cloud Spanner to derive values for all primary key columns in the row(s) to be modified.
table: Option<String>
Required. The table whose rows will be written.
values: Option<Vec<Vec<Value>>>
The values to be written. values
can contain more than one list of values. If it does, then multiple rows are written, one for each entry in values
. Each list in values
must have exactly as many entries as there are entries in columns above. Sending multiple lists is equivalent to sending multiple Mutation
s, each containing one values
entry and repeating table and columns. Individual values in each list are encoded as described here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Write
impl<'de> Deserialize<'de> for Write
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>,
impl Part for Write
Auto Trait Implementations§
impl Freeze for Write
impl RefUnwindSafe for Write
impl Send for Write
impl Sync for Write
impl Unpin for Write
impl UnwindSafe for Write
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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