Struct rusoto_dynamodb::BatchWriteItemInput
source · [−]pub struct BatchWriteItemInput {
pub request_items: HashMap<String, Vec<WriteRequest>>,
pub return_consumed_capacity: Option<String>,
pub return_item_collection_metrics: Option<String>,
}
Expand description
Represents the input of a BatchWriteItem
operation.
Fields
request_items: HashMap<String, Vec<WriteRequest>>
A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest
or PutRequest
). Each element in the map consists of the following:
-
DeleteRequest
- Perform aDeleteItem
operation on the specified item. The item to be deleted is identified by aKey
subelement:-
Key
- A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
-
-
PutRequest
- Perform aPutItem
operation on the specified item. The item to be put is identified by anItem
subelement:-
Item
- A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values are rejected with aValidationException
exception.If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
-
return_consumed_capacity: Option<String>
return_item_collection_metrics: Option<String>
Determines whether item collection metrics are returned. If set to SIZE
, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE
(the default), no statistics are returned.
Trait Implementations
sourceimpl Clone for BatchWriteItemInput
impl Clone for BatchWriteItemInput
sourcefn clone(&self) -> BatchWriteItemInput
fn clone(&self) -> BatchWriteItemInput
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 BatchWriteItemInput
impl Debug for BatchWriteItemInput
sourceimpl Default for BatchWriteItemInput
impl Default for BatchWriteItemInput
sourcefn default() -> BatchWriteItemInput
fn default() -> BatchWriteItemInput
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BatchWriteItemInput> for BatchWriteItemInput
impl PartialEq<BatchWriteItemInput> for BatchWriteItemInput
sourcefn eq(&self, other: &BatchWriteItemInput) -> bool
fn eq(&self, other: &BatchWriteItemInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BatchWriteItemInput) -> bool
fn ne(&self, other: &BatchWriteItemInput) -> bool
This method tests for !=
.
sourceimpl Serialize for BatchWriteItemInput
impl Serialize for BatchWriteItemInput
impl StructuralPartialEq for BatchWriteItemInput
Auto Trait Implementations
impl RefUnwindSafe for BatchWriteItemInput
impl Send for BatchWriteItemInput
impl Sync for BatchWriteItemInput
impl Unpin for BatchWriteItemInput
impl UnwindSafe for BatchWriteItemInput
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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