Skip to main content

BatchStatementRequest

Struct BatchStatementRequest 

Source
#[non_exhaustive]
pub struct BatchStatementRequest { pub statement: String, pub parameters: Option<Vec<AttributeValue>>, pub consistent_read: Option<bool>, pub return_values_on_condition_check_failure: Option<String>, }
Expand description

One member of a batch.

#[non_exhaustive] because DynamoDB grows this shape and has already grown it twice here: ConsistentRead and ReturnValuesOnConditionCheckFailure both arrived after the type was first written. The attribute means the next one costs consumers nothing. Construct one from Default and assign, or deserialise it. The enclosing BatchExecuteStatementRequest is deliberately not marked: it carries Statements and ReturnConsumedCapacity, which is the whole of DynamoDB’s shape.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§statement: String§parameters: Option<Vec<AttributeValue>>§consistent_read: Option<bool>

Per member, not per batch. Does not change which rows come back, because every read against SQLite is already strongly consistent, but it does change the rate the read is charged at: a keyed batch SELECT costs 0.5 without it and 1 with it, and a batch mixing the two sums both rates. Captured eu-west-2 2026-08-15.

§return_values_on_condition_check_failure: Option<String>

Accepted and inert, which is what DynamoDB does with it. A batch member whose condition fails returns the same response whether this is ALL_OLD, NONE, or absent, and never carries the item: measured against a TransactWriteItems ConditionCheck in the same round, which does return it. The field is deserialised so a client setting it meets a field dynoxide knows rather than one it drops.

Trait Implementations§

Source§

impl Debug for BatchStatementRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BatchStatementRequest

Source§

fn default() -> BatchStatementRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for BatchStatementRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Fake for T

Source§

fn fake<U>(&self) -> U
where Self: FakeBase<U>,

Source§

fn fake_with_rng<U, R>(&self, rng: &mut R) -> U
where R: Rng + ?Sized, Self: FakeBase<U>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more