#[non_exhaustive]pub struct RecommendationSummary {
pub summaries: Option<Vec<Summary>>,
pub recommendation_resource_type: Option<RecommendationSourceType>,
pub account_id: Option<String>,
pub savings_opportunity: Option<SavingsOpportunity>,
pub current_performance_risk_ratings: Option<CurrentPerformanceRiskRatings>,
pub inferred_workload_savings: Option<Vec<InferredWorkloadSaving>>,
}
Expand description
A summary of a 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.summaries: Option<Vec<Summary>>
An array of objects that describe a recommendation summary.
recommendation_resource_type: Option<RecommendationSourceType>
The resource type that the recommendation summary applies to.
account_id: Option<String>
The Amazon Web Services account ID of the recommendation summary.
savings_opportunity: Option<SavingsOpportunity>
An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.
current_performance_risk_ratings: Option<CurrentPerformanceRiskRatings>
An object that describes the performance risk ratings for a given resource type.
inferred_workload_savings: Option<Vec<InferredWorkloadSaving>>
An array of objects that describes the estimated monthly saving amounts for the instances running on the specified inferredWorkloadTypes
. The array contains the top five savings opportunites for the instances that run inferred workload types.
Implementations§
source§impl RecommendationSummary
impl RecommendationSummary
sourcepub fn summaries(&self) -> &[Summary]
pub fn summaries(&self) -> &[Summary]
An array of objects that describe a recommendation summary.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .summaries.is_none()
.
sourcepub fn recommendation_resource_type(&self) -> Option<&RecommendationSourceType>
pub fn recommendation_resource_type(&self) -> Option<&RecommendationSourceType>
The resource type that the recommendation summary applies to.
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The Amazon Web Services account ID of the recommendation summary.
sourcepub fn savings_opportunity(&self) -> Option<&SavingsOpportunity>
pub fn savings_opportunity(&self) -> Option<&SavingsOpportunity>
An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.
sourcepub fn current_performance_risk_ratings(
&self,
) -> Option<&CurrentPerformanceRiskRatings>
pub fn current_performance_risk_ratings( &self, ) -> Option<&CurrentPerformanceRiskRatings>
An object that describes the performance risk ratings for a given resource type.
sourcepub fn inferred_workload_savings(&self) -> &[InferredWorkloadSaving]
pub fn inferred_workload_savings(&self) -> &[InferredWorkloadSaving]
An array of objects that describes the estimated monthly saving amounts for the instances running on the specified inferredWorkloadTypes
. The array contains the top five savings opportunites for the instances that run inferred workload types.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .inferred_workload_savings.is_none()
.
source§impl RecommendationSummary
impl RecommendationSummary
sourcepub fn builder() -> RecommendationSummaryBuilder
pub fn builder() -> RecommendationSummaryBuilder
Creates a new builder-style object to manufacture RecommendationSummary
.
Trait Implementations§
source§impl Clone for RecommendationSummary
impl Clone for RecommendationSummary
source§fn clone(&self) -> RecommendationSummary
fn clone(&self) -> RecommendationSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationSummary
impl Debug for RecommendationSummary
source§impl PartialEq for RecommendationSummary
impl PartialEq for RecommendationSummary
impl StructuralPartialEq for RecommendationSummary
Auto Trait Implementations§
impl Freeze for RecommendationSummary
impl RefUnwindSafe for RecommendationSummary
impl Send for RecommendationSummary
impl Sync for RecommendationSummary
impl Unpin for RecommendationSummary
impl UnwindSafe for RecommendationSummary
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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