Struct aws_sdk_dynamodb::types::Get
source · #[non_exhaustive]pub struct Get {
pub key: HashMap<String, AttributeValue>,
pub table_name: String,
pub projection_expression: Option<String>,
pub expression_attribute_names: Option<HashMap<String, String>>,
}
Expand description
Specifies an item and related attribute values to retrieve in a TransactGetItem
object.
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.key: HashMap<String, AttributeValue>
A map of attribute names to AttributeValue
objects that specifies the primary key of the item to retrieve.
table_name: String
The name of the table from which to retrieve the specified item.
projection_expression: Option<String>
A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.
expression_attribute_names: Option<HashMap<String, String>>
One or more substitution tokens for attribute names in the ProjectionExpression parameter.
Implementations§
source§impl Get
impl Get
sourcepub fn key(&self) -> &HashMap<String, AttributeValue>
pub fn key(&self) -> &HashMap<String, AttributeValue>
A map of attribute names to AttributeValue
objects that specifies the primary key of the item to retrieve.
sourcepub fn table_name(&self) -> &str
pub fn table_name(&self) -> &str
The name of the table from which to retrieve the specified item.
sourcepub fn projection_expression(&self) -> Option<&str>
pub fn projection_expression(&self) -> Option<&str>
A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.