Struct aws_sdk_dynamodb::types::ParameterizedStatement
source · #[non_exhaustive]pub struct ParameterizedStatement {
pub statement: String,
pub parameters: Option<Vec<AttributeValue>>,
pub return_values_on_condition_check_failure: Option<ReturnValuesOnConditionCheckFailure>,
}
Expand description
Represents a PartiQL statement that uses parameters.
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: String
A PartiQL statement that uses parameters.
parameters: Option<Vec<AttributeValue>>
The parameter values.
return_values_on_condition_check_failure: Option<ReturnValuesOnConditionCheckFailure>
An optional parameter that returns the item attributes for a PartiQL ParameterizedStatement
operation that failed a condition check.
There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
Implementations§
source§impl ParameterizedStatement
impl ParameterizedStatement
sourcepub fn parameters(&self) -> &[AttributeValue]
pub fn parameters(&self) -> &[AttributeValue]
The parameter values.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parameters.is_none()
.
sourcepub fn return_values_on_condition_check_failure(
&self
) -> Option<&ReturnValuesOnConditionCheckFailure>
pub fn return_values_on_condition_check_failure( &self ) -> Option<&ReturnValuesOnConditionCheckFailure>
An optional parameter that returns the item attributes for a PartiQL ParameterizedStatement
operation that failed a condition check.
There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
source§impl ParameterizedStatement
impl ParameterizedStatement
sourcepub fn builder() -> ParameterizedStatementBuilder
pub fn builder() -> ParameterizedStatementBuilder
Creates a new builder-style object to manufacture ParameterizedStatement
.
Trait Implementations§
source§impl Clone for ParameterizedStatement
impl Clone for ParameterizedStatement
source§fn clone(&self) -> ParameterizedStatement
fn clone(&self) -> ParameterizedStatement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ParameterizedStatement
impl Debug for ParameterizedStatement
source§impl PartialEq for ParameterizedStatement
impl PartialEq for ParameterizedStatement
source§fn eq(&self, other: &ParameterizedStatement) -> bool
fn eq(&self, other: &ParameterizedStatement) -> bool
self
and other
values to be equal, and is used
by ==
.