#[non_exhaustive]pub struct AdvancedCostOptimizationMetrics {
pub is_enabled: bool,
}
Expand description
The container element for Amazon S3 Storage Lens advanced cost-optimization metrics. Advanced cost-optimization metrics provide insights that you can use to manage and optimize your storage costs, for example, lifecycle rule counts for transitions, expirations, and incomplete multipart uploads.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
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.is_enabled: bool
A container that indicates whether advanced cost-optimization metrics are enabled.
Implementations§
source§impl AdvancedCostOptimizationMetrics
impl AdvancedCostOptimizationMetrics
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
A container that indicates whether advanced cost-optimization metrics are enabled.
source§impl AdvancedCostOptimizationMetrics
impl AdvancedCostOptimizationMetrics
sourcepub fn builder() -> AdvancedCostOptimizationMetricsBuilder
pub fn builder() -> AdvancedCostOptimizationMetricsBuilder
Creates a new builder-style object to manufacture AdvancedCostOptimizationMetrics
.
Trait Implementations§
source§impl Clone for AdvancedCostOptimizationMetrics
impl Clone for AdvancedCostOptimizationMetrics
source§fn clone(&self) -> AdvancedCostOptimizationMetrics
fn clone(&self) -> AdvancedCostOptimizationMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AdvancedCostOptimizationMetrics
impl PartialEq for AdvancedCostOptimizationMetrics
source§fn eq(&self, other: &AdvancedCostOptimizationMetrics) -> bool
fn eq(&self, other: &AdvancedCostOptimizationMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdvancedCostOptimizationMetrics
Auto Trait Implementations§
impl Freeze for AdvancedCostOptimizationMetrics
impl RefUnwindSafe for AdvancedCostOptimizationMetrics
impl Send for AdvancedCostOptimizationMetrics
impl Sync for AdvancedCostOptimizationMetrics
impl Unpin for AdvancedCostOptimizationMetrics
impl UnwindSafe for AdvancedCostOptimizationMetrics
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