Struct aws_sdk_dynamodb::types::ItemCollectionMetrics
source · #[non_exhaustive]pub struct ItemCollectionMetrics {
pub item_collection_key: Option<HashMap<String, AttributeValue>>,
pub size_estimate_range_gb: Option<Vec<f64>>,
}
Expand description
Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics
is only returned if the request asked for it. If the table does not have any local secondary indexes, this information is not returned in the response.
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.item_collection_key: Option<HashMap<String, AttributeValue>>
The partition key value of the item collection. This value is the same as the partition key value of the item.
size_estimate_range_gb: Option<Vec<f64>>
An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
Implementations§
source§impl ItemCollectionMetrics
impl ItemCollectionMetrics
sourcepub fn item_collection_key(&self) -> Option<&HashMap<String, AttributeValue>>
pub fn item_collection_key(&self) -> Option<&HashMap<String, AttributeValue>>
The partition key value of the item collection. This value is the same as the partition key value of the item.
sourcepub fn size_estimate_range_gb(&self) -> &[f64]
pub fn size_estimate_range_gb(&self) -> &[f64]
An estimate of item collection size, in gigabytes. This value is a two-element array containing a lower bound and an upper bound for the estimate. The estimate includes the size of all the items in the table, plus the size of all attributes projected into all of the local secondary indexes on that table. Use this estimate to measure whether a local secondary index is approaching its size limit.
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .size_estimate_range_gb.is_none()
.
source§impl ItemCollectionMetrics
impl ItemCollectionMetrics
sourcepub fn builder() -> ItemCollectionMetricsBuilder
pub fn builder() -> ItemCollectionMetricsBuilder
Creates a new builder-style object to manufacture ItemCollectionMetrics
.
Trait Implementations§
source§impl Clone for ItemCollectionMetrics
impl Clone for ItemCollectionMetrics
source§fn clone(&self) -> ItemCollectionMetrics
fn clone(&self) -> ItemCollectionMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ItemCollectionMetrics
impl Debug for ItemCollectionMetrics
source§impl PartialEq for ItemCollectionMetrics
impl PartialEq for ItemCollectionMetrics
source§fn eq(&self, other: &ItemCollectionMetrics) -> bool
fn eq(&self, other: &ItemCollectionMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ItemCollectionMetrics
Auto Trait Implementations§
impl Freeze for ItemCollectionMetrics
impl RefUnwindSafe for ItemCollectionMetrics
impl Send for ItemCollectionMetrics
impl Sync for ItemCollectionMetrics
impl Unpin for ItemCollectionMetrics
impl UnwindSafe for ItemCollectionMetrics
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