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. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
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. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
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.
Trait Implementations§
impl StructuralPartialEq for Get
Auto Trait Implementations§
impl Freeze for Get
impl RefUnwindSafe for Get
impl Send for Get
impl Sync for Get
impl Unpin for Get
impl UnwindSafe for Get
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more