#[non_exhaustive]pub struct TransactGetItemsOutput {
pub consumed_capacity: Option<Vec<ConsumedCapacity>>,
pub responses: Option<Vec<ItemResponse>>,
/* private fields */
}
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.consumed_capacity: Option<Vec<ConsumedCapacity>>
If the ReturnConsumedCapacity value was TOTAL
, this is an array of ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units consumed by the TransactGetItems
call in that table.
responses: Option<Vec<ItemResponse>>
An ordered array of up to 100 ItemResponse
objects, each of which corresponds to the TransactGetItem
object in the same position in the TransactItems array. Each ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the requested item.
If a requested item could not be retrieved, the corresponding ItemResponse
object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
Implementations§
Source§impl TransactGetItemsOutput
impl TransactGetItemsOutput
Sourcepub fn consumed_capacity(&self) -> &[ConsumedCapacity]
pub fn consumed_capacity(&self) -> &[ConsumedCapacity]
If the ReturnConsumedCapacity value was TOTAL
, this is an array of ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units consumed by the TransactGetItems
call in that table.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .consumed_capacity.is_none()
.
Sourcepub fn responses(&self) -> &[ItemResponse]
pub fn responses(&self) -> &[ItemResponse]
An ordered array of up to 100 ItemResponse
objects, each of which corresponds to the TransactGetItem
object in the same position in the TransactItems array. Each ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the requested item.
If a requested item could not be retrieved, the corresponding ItemResponse
object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .responses.is_none()
.
Source§impl TransactGetItemsOutput
impl TransactGetItemsOutput
Sourcepub fn builder() -> TransactGetItemsOutputBuilder
pub fn builder() -> TransactGetItemsOutputBuilder
Creates a new builder-style object to manufacture TransactGetItemsOutput
.
Trait Implementations§
Source§impl Clone for TransactGetItemsOutput
impl Clone for TransactGetItemsOutput
Source§fn clone(&self) -> TransactGetItemsOutput
fn clone(&self) -> TransactGetItemsOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactGetItemsOutput
impl Debug for TransactGetItemsOutput
Source§impl PartialEq for TransactGetItemsOutput
impl PartialEq for TransactGetItemsOutput
Source§impl RequestId for TransactGetItemsOutput
impl RequestId for TransactGetItemsOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for TransactGetItemsOutput
Auto Trait Implementations§
impl Freeze for TransactGetItemsOutput
impl RefUnwindSafe for TransactGetItemsOutput
impl Send for TransactGetItemsOutput
impl Sync for TransactGetItemsOutput
impl Unpin for TransactGetItemsOutput
impl UnwindSafe for TransactGetItemsOutput
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§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