#[non_exhaustive]pub struct InstanceSavingsOpportunityAfterDiscounts {
pub savings_opportunity_percentage: f64,
pub estimated_monthly_savings: Option<InstanceEstimatedMonthlySavings>,
}
Expand description
Describes the savings opportunity for instance recommendations after applying the Savings Plans and Reserved Instances discounts.
Savings opportunity after discounts represents the estimated monthly savings you can achieve by implementing Compute Optimizer recommendations.
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.savings_opportunity_percentage: f64
The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance recommendations.
estimated_monthly_savings: Option<InstanceEstimatedMonthlySavings>
An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances discounts.
Implementations§
source§impl InstanceSavingsOpportunityAfterDiscounts
impl InstanceSavingsOpportunityAfterDiscounts
sourcepub fn savings_opportunity_percentage(&self) -> f64
pub fn savings_opportunity_percentage(&self) -> f64
The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and Reserved Instances discounts. This saving can be achieved by adopting Compute Optimizer’s EC2 instance recommendations.
sourcepub fn estimated_monthly_savings(
&self
) -> Option<&InstanceEstimatedMonthlySavings>
pub fn estimated_monthly_savings( &self ) -> Option<&InstanceEstimatedMonthlySavings>
An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Amazon EC2 instance recommendations. This is based on pricing after applying the Savings Plans and Reserved Instances discounts.
source§impl InstanceSavingsOpportunityAfterDiscounts
impl InstanceSavingsOpportunityAfterDiscounts
sourcepub fn builder() -> InstanceSavingsOpportunityAfterDiscountsBuilder
pub fn builder() -> InstanceSavingsOpportunityAfterDiscountsBuilder
Creates a new builder-style object to manufacture InstanceSavingsOpportunityAfterDiscounts
.
Trait Implementations§
source§impl Clone for InstanceSavingsOpportunityAfterDiscounts
impl Clone for InstanceSavingsOpportunityAfterDiscounts
source§fn clone(&self) -> InstanceSavingsOpportunityAfterDiscounts
fn clone(&self) -> InstanceSavingsOpportunityAfterDiscounts
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for InstanceSavingsOpportunityAfterDiscounts
impl PartialEq for InstanceSavingsOpportunityAfterDiscounts
source§fn eq(&self, other: &InstanceSavingsOpportunityAfterDiscounts) -> bool
fn eq(&self, other: &InstanceSavingsOpportunityAfterDiscounts) -> bool
self
and other
values to be equal, and is used
by ==
.