#[non_exhaustive]pub struct LambdaSavingsOpportunityAfterDiscounts {
pub savings_opportunity_percentage: f64,
pub estimated_monthly_savings: Option<LambdaEstimatedMonthlySavings>,
}Expand description
Describes the savings opportunity for Lambda functions recommendations after applying Savings Plans discounts.
Savings opportunity represents the estimated monthly savings after applying Savings Plans discounts. You can achieve this by implementing a given Compute Optimizer recommendation.
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: f64The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer’s Lambda function recommendations. This includes any applicable Savings Plans discounts.
estimated_monthly_savings: Option<LambdaEstimatedMonthlySavings>The estimated monthly savings possible by adopting Compute Optimizer’s Lambda function recommendations. This includes any applicable Savings Plans discounts.
Implementations§
source§impl LambdaSavingsOpportunityAfterDiscounts
impl LambdaSavingsOpportunityAfterDiscounts
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 by adopting Compute Optimizer’s Lambda function recommendations. This includes any applicable Savings Plans discounts.
sourcepub fn estimated_monthly_savings(
&self,
) -> Option<&LambdaEstimatedMonthlySavings>
pub fn estimated_monthly_savings( &self, ) -> Option<&LambdaEstimatedMonthlySavings>
The estimated monthly savings possible by adopting Compute Optimizer’s Lambda function recommendations. This includes any applicable Savings Plans discounts.
source§impl LambdaSavingsOpportunityAfterDiscounts
impl LambdaSavingsOpportunityAfterDiscounts
sourcepub fn builder() -> LambdaSavingsOpportunityAfterDiscountsBuilder
pub fn builder() -> LambdaSavingsOpportunityAfterDiscountsBuilder
Creates a new builder-style object to manufacture LambdaSavingsOpportunityAfterDiscounts.
Trait Implementations§
source§impl Clone for LambdaSavingsOpportunityAfterDiscounts
impl Clone for LambdaSavingsOpportunityAfterDiscounts
source§fn clone(&self) -> LambdaSavingsOpportunityAfterDiscounts
fn clone(&self) -> LambdaSavingsOpportunityAfterDiscounts
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for LambdaSavingsOpportunityAfterDiscounts
impl PartialEq for LambdaSavingsOpportunityAfterDiscounts
source§fn eq(&self, other: &LambdaSavingsOpportunityAfterDiscounts) -> bool
fn eq(&self, other: &LambdaSavingsOpportunityAfterDiscounts) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LambdaSavingsOpportunityAfterDiscounts
Auto Trait Implementations§
impl Freeze for LambdaSavingsOpportunityAfterDiscounts
impl RefUnwindSafe for LambdaSavingsOpportunityAfterDiscounts
impl Send for LambdaSavingsOpportunityAfterDiscounts
impl Sync for LambdaSavingsOpportunityAfterDiscounts
impl Unpin for LambdaSavingsOpportunityAfterDiscounts
impl UnwindSafe for LambdaSavingsOpportunityAfterDiscounts
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