pub struct PutItemInput {
pub table_name: String,
pub item: HashMap<String, AttributeValue>,
pub condition_expression: Option<String>,
pub expression_attribute_names: HashMap<String, String>,
pub expression_attribute_values: HashMap<String, AttributeValue>,
pub return_values: Option<ReturnValue>,
pub return_consumed_capacity: Option<ReturnConsumedCapacity>,
pub return_item_collection_metrics: Option<ReturnItemCollectionMetrics>,
pub expected: HashMap<String, ExpectedAttributeValue>,
pub conditional_operator: Option<ConditionalOperator>,
pub return_values_on_condition_check_failure: Option<String>,
}Expand description
Input for the PutItem operation.
Fields§
§table_name: StringThe name of the table to put the item into.
item: HashMap<String, AttributeValue>A map of attribute name to attribute value, representing the item.
condition_expression: Option<String>A condition that must be satisfied for the put to succeed.
expression_attribute_names: HashMap<String, String>Substitution tokens for attribute names in an expression.
expression_attribute_values: HashMap<String, AttributeValue>Substitution tokens for attribute values in an expression.
return_values: Option<ReturnValue>Determines the attributes to return after the operation.
return_consumed_capacity: Option<ReturnConsumedCapacity>Determines the level of detail about provisioned throughput consumption.
return_item_collection_metrics: Option<ReturnItemCollectionMetrics>Determines whether item collection metrics are returned.
expected: HashMap<String, ExpectedAttributeValue>Legacy: expected conditions for conditional writes.
conditional_operator: Option<ConditionalOperator>Legacy: logical operator for combining multiple expected conditions.
return_values_on_condition_check_failure: Option<String>Determines whether to return the item attributes on a failed condition check.
Valid values: NONE, ALL_OLD.
Trait Implementations§
Source§impl Clone for PutItemInput
impl Clone for PutItemInput
Source§fn clone(&self) -> PutItemInput
fn clone(&self) -> PutItemInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PutItemInput
impl Debug for PutItemInput
Source§impl Default for PutItemInput
impl Default for PutItemInput
Source§fn default() -> PutItemInput
fn default() -> PutItemInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PutItemInput
impl<'de> Deserialize<'de> for PutItemInput
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PutItemInput
impl RefUnwindSafe for PutItemInput
impl Send for PutItemInput
impl Sync for PutItemInput
impl Unpin for PutItemInput
impl UnsafeUnpin for PutItemInput
impl UnwindSafe for PutItemInput
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
Mutably borrows from an owned value. Read more