pub struct BatchWriteOutput<T>where
T: DynamoTable,
T::PK: Display + Clone + Send + Sync + Debug,
T::SK: Display + Clone + Send + Sync + Debug,{
pub processed_puts: Vec<T>,
pub failed_puts: Vec<T>,
pub processed_deletes: Vec<T>,
pub failed_deletes: Vec<T>,
pub total_duration: Duration,
pub retry_count: usize,
pub item_collection_metrics: HashMap<String, Vec<ItemCollectionMetrics>>,
pub consumed_capacity: Vec<ConsumedCapacity>,
}Expand description
Batch write output containing comprehensive metrics and tracking
Tracks which items were successfully processed, which failed after retries, execution time, and retry attempts.
Fields§
§processed_puts: Vec<T>Items successfully written (puts)
failed_puts: Vec<T>Items that failed to be written after all retry attempts
processed_deletes: Vec<T>Items successfully deleted
failed_deletes: Vec<T>Items that failed to be deleted after all retry attempts
total_duration: DurationTotal execution time including all retries
retry_count: usizeNumber of retry attempts made (0 means no retries needed)
item_collection_metrics: HashMap<String, Vec<ItemCollectionMetrics>>A list of tables that were processed by BatchWriteItem and, for each table, information about any item collections that were affected by individual DeleteItem or PutItem operations.
consumed_capacity: Vec<ConsumedCapacity>The capacity units consumed by the entire BatchWriteItem operation.
Implementations§
Source§impl<T> BatchWriteOutput<T>
impl<T> BatchWriteOutput<T>
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if all operations were successful
Sourcepub fn processed_count(&self) -> usize
pub fn processed_count(&self) -> usize
Get total number of items processed successfully
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Get total number of items that failed
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate as a percentage (0.0 to 100.0)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BatchWriteOutput<T>
impl<T> RefUnwindSafe for BatchWriteOutput<T>
impl<T> Send for BatchWriteOutput<T>
impl<T> Sync for BatchWriteOutput<T>
impl<T> Unpin for BatchWriteOutput<T>
impl<T> UnsafeUnpin for BatchWriteOutput<T>
impl<T> UnwindSafe for BatchWriteOutput<T>
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> 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