Struct aws_sdk_honeycode::model::UpsertRowData
source · [−]#[non_exhaustive]pub struct UpsertRowData {
pub batch_item_id: Option<String>,
pub filter: Option<Filter>,
pub cells_to_update: Option<HashMap<String, CellInput>>,
}
Expand description
Data needed to upsert rows in a table as part of a single item in the BatchUpsertTableRows request.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.batch_item_id: Option<String>
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
filter: Option<Filter>
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
cells_to_update: Option<HashMap<String, CellInput>>
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
Implementations
sourceimpl UpsertRowData
impl UpsertRowData
sourcepub fn batch_item_id(&self) -> Option<&str>
pub fn batch_item_id(&self) -> Option<&str>
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
sourcepub fn filter(&self) -> Option<&Filter>
pub fn filter(&self) -> Option<&Filter>
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
sourceimpl UpsertRowData
impl UpsertRowData
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpsertRowData
Trait Implementations
sourceimpl Clone for UpsertRowData
impl Clone for UpsertRowData
sourcefn clone(&self) -> UpsertRowData
fn clone(&self) -> UpsertRowData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpsertRowData
impl Debug for UpsertRowData
sourceimpl PartialEq<UpsertRowData> for UpsertRowData
impl PartialEq<UpsertRowData> for UpsertRowData
sourcefn eq(&self, other: &UpsertRowData) -> bool
fn eq(&self, other: &UpsertRowData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpsertRowData) -> bool
fn ne(&self, other: &UpsertRowData) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpsertRowData
Auto Trait Implementations
impl RefUnwindSafe for UpsertRowData
impl Send for UpsertRowData
impl Sync for UpsertRowData
impl Unpin for UpsertRowData
impl UnwindSafe for UpsertRowData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more