#[non_exhaustive]pub struct BatchExecuteStatementInput {
pub statements: Option<Vec<BatchStatementRequest>>,
pub return_consumed_capacity: Option<ReturnConsumedCapacity>,
}
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.statements: Option<Vec<BatchStatementRequest>>
The list of PartiQL statements representing the batch to run.
return_consumed_capacity: Option<ReturnConsumedCapacity>
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
Implementations§
source§impl BatchExecuteStatementInput
impl BatchExecuteStatementInput
sourcepub fn statements(&self) -> &[BatchStatementRequest]
pub fn statements(&self) -> &[BatchStatementRequest]
The list of PartiQL statements representing the batch to run.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .statements.is_none()
.
sourcepub fn return_consumed_capacity(&self) -> Option<&ReturnConsumedCapacity>
pub fn return_consumed_capacity(&self) -> Option<&ReturnConsumedCapacity>
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
-
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.Note that some operations, such as
GetItem
andBatchGetItem
, do not access any indexes at all. In these cases, specifyingINDEXES
will only returnConsumedCapacity
information for table(s). -
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation. -
NONE
- NoConsumedCapacity
details are included in the response.
source§impl BatchExecuteStatementInput
impl BatchExecuteStatementInput
sourcepub fn builder() -> BatchExecuteStatementInputBuilder
pub fn builder() -> BatchExecuteStatementInputBuilder
Creates a new builder-style object to manufacture BatchExecuteStatementInput
.
Trait Implementations§
source§impl Clone for BatchExecuteStatementInput
impl Clone for BatchExecuteStatementInput
source§fn clone(&self) -> BatchExecuteStatementInput
fn clone(&self) -> BatchExecuteStatementInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchExecuteStatementInput
impl Debug for BatchExecuteStatementInput
source§impl PartialEq for BatchExecuteStatementInput
impl PartialEq for BatchExecuteStatementInput
source§fn eq(&self, other: &BatchExecuteStatementInput) -> bool
fn eq(&self, other: &BatchExecuteStatementInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatchExecuteStatementInput
Auto Trait Implementations§
impl Freeze for BatchExecuteStatementInput
impl RefUnwindSafe for BatchExecuteStatementInput
impl Send for BatchExecuteStatementInput
impl Sync for BatchExecuteStatementInput
impl Unpin for BatchExecuteStatementInput
impl UnwindSafe for BatchExecuteStatementInput
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