Struct aws_sdk_dynamodb::input::ExecuteStatementInput
source · [−]#[non_exhaustive]pub struct ExecuteStatementInput {
pub statement: Option<String>,
pub parameters: Option<Vec<AttributeValue>>,
pub consistent_read: Option<bool>,
pub next_token: Option<String>,
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.statement: Option<String>
The PartiQL statement representing the operation to run.
parameters: Option<Vec<AttributeValue>>
The parameters for the PartiQL statement, if any.
consistent_read: Option<bool>
The consistency of a read operation. If set to true
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
next_token: Option<String>
Set this value to get remaining results, if NextToken
was returned in the statement response.
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
sourceimpl ExecuteStatementInput
impl ExecuteStatementInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ExecuteStatement, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ExecuteStatement, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ExecuteStatement
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ExecuteStatementInput
sourceimpl ExecuteStatementInput
impl ExecuteStatementInput
sourcepub fn statement(&self) -> Option<&str>
pub fn statement(&self) -> Option<&str>
The PartiQL statement representing the operation to run.
sourcepub fn parameters(&self) -> Option<&[AttributeValue]>
pub fn parameters(&self) -> Option<&[AttributeValue]>
The parameters for the PartiQL statement, if any.
sourcepub fn consistent_read(&self) -> Option<bool>
pub fn consistent_read(&self) -> Option<bool>
The consistency of a read operation. If set to true
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
Set this value to get remaining results, if NextToken
was returned in the statement response.
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.
Trait Implementations
sourceimpl Clone for ExecuteStatementInput
impl Clone for ExecuteStatementInput
sourcefn clone(&self) -> ExecuteStatementInput
fn clone(&self) -> ExecuteStatementInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExecuteStatementInput
impl Debug for ExecuteStatementInput
sourceimpl PartialEq<ExecuteStatementInput> for ExecuteStatementInput
impl PartialEq<ExecuteStatementInput> for ExecuteStatementInput
sourcefn eq(&self, other: &ExecuteStatementInput) -> bool
fn eq(&self, other: &ExecuteStatementInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExecuteStatementInput) -> bool
fn ne(&self, other: &ExecuteStatementInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ExecuteStatementInput
Auto Trait Implementations
impl RefUnwindSafe for ExecuteStatementInput
impl Send for ExecuteStatementInput
impl Sync for ExecuteStatementInput
impl Unpin for ExecuteStatementInput
impl UnwindSafe for ExecuteStatementInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more