pub struct GetItemInput {
pub table_name: String,
pub key: HashMap<String, AttributeValue>,
pub consistent_read: Option<bool>,
pub projection_expression: Option<String>,
pub expression_attribute_names: HashMap<String, String>,
pub return_consumed_capacity: Option<ReturnConsumedCapacity>,
pub attributes_to_get: Option<Vec<String>>,
}Expand description
Input for the GetItem operation.
Fields§
§table_name: StringThe name of the table containing the item.
key: HashMap<String, AttributeValue>A map of attribute names to AttributeValue objects representing the
primary key of the item to retrieve.
consistent_read: Option<bool>If true, a strongly consistent read is used; otherwise, an eventually
consistent read is used.
projection_expression: Option<String>A string that identifies the attributes to retrieve from the table.
expression_attribute_names: HashMap<String, String>Substitution tokens for attribute names in an expression.
return_consumed_capacity: Option<ReturnConsumedCapacity>Determines the level of detail about provisioned throughput consumption.
attributes_to_get: Option<Vec<String>>Legacy: attribute names to retrieve (use projection_expression instead).
Trait Implementations§
Source§impl Clone for GetItemInput
impl Clone for GetItemInput
Source§fn clone(&self) -> GetItemInput
fn clone(&self) -> GetItemInput
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 GetItemInput
impl Debug for GetItemInput
Source§impl Default for GetItemInput
impl Default for GetItemInput
Source§fn default() -> GetItemInput
fn default() -> GetItemInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetItemInput
impl<'de> Deserialize<'de> for GetItemInput
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 GetItemInput
impl RefUnwindSafe for GetItemInput
impl Send for GetItemInput
impl Sync for GetItemInput
impl Unpin for GetItemInput
impl UnsafeUnpin for GetItemInput
impl UnwindSafe for GetItemInput
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