Struct aws_sdk_dynamodb::operation::get_item::GetItemOutput
source · #[non_exhaustive]pub struct GetItemOutput {
pub item: Option<HashMap<String, AttributeValue>>,
pub consumed_capacity: Option<ConsumedCapacity>,
/* private fields */
}
Expand description
Represents the output of a GetItem
operation.
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.item: Option<HashMap<String, AttributeValue>>
A map of attribute names to AttributeValue
objects, as specified by ProjectionExpression
.
consumed_capacity: Option<ConsumedCapacity>
The capacity units consumed by the GetItem
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
Implementations§
source§impl GetItemOutput
impl GetItemOutput
sourcepub fn item(&self) -> Option<&HashMap<String, AttributeValue>>
pub fn item(&self) -> Option<&HashMap<String, AttributeValue>>
A map of attribute names to AttributeValue
objects, as specified by ProjectionExpression
.
sourcepub fn consumed_capacity(&self) -> Option<&ConsumedCapacity>
pub fn consumed_capacity(&self) -> Option<&ConsumedCapacity>
The capacity units consumed by the GetItem
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
source§impl GetItemOutput
impl GetItemOutput
sourcepub fn builder() -> GetItemOutputBuilder
pub fn builder() -> GetItemOutputBuilder
Creates a new builder-style object to manufacture GetItemOutput
.
Trait Implementations§
source§impl Clone for GetItemOutput
impl Clone for GetItemOutput
source§fn clone(&self) -> GetItemOutput
fn clone(&self) -> GetItemOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetItemOutput
impl Debug for GetItemOutput
source§impl PartialEq for GetItemOutput
impl PartialEq for GetItemOutput
source§fn eq(&self, other: &GetItemOutput) -> bool
fn eq(&self, other: &GetItemOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetItemOutput
impl RequestId for GetItemOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetItemOutput
Auto Trait Implementations§
impl Freeze for GetItemOutput
impl RefUnwindSafe for GetItemOutput
impl Send for GetItemOutput
impl Sync for GetItemOutput
impl Unpin for GetItemOutput
impl UnwindSafe for GetItemOutput
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