pub struct InstanceRecommendationOption {
pub instance_type: Option<String>,
pub performance_risk: Option<f64>,
pub projected_utilization_metrics: Option<Vec<UtilizationMetric>>,
pub rank: Option<i64>,
}
Expand description
Describes a recommendation option for an Amazon EC2 instance.
Fields§
§instance_type: Option<String>
The instance type of the instance recommendation.
performance_risk: Option<f64>
The performance risk of the instance recommendation option.
Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload.
The lowest performance risk is categorized as 0
, and the highest as 5
.
projected_utilization_metrics: Option<Vec<UtilizationMetric>>
An array of objects that describe the projected utilization metrics of the instance recommendation option.
rank: Option<i64>
The rank of the instance recommendation option.
The top recommendation option is ranked as 1
.
Trait Implementations§
Source§impl Clone for InstanceRecommendationOption
impl Clone for InstanceRecommendationOption
Source§fn clone(&self) -> InstanceRecommendationOption
fn clone(&self) -> InstanceRecommendationOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InstanceRecommendationOption
impl Debug for InstanceRecommendationOption
Source§impl Default for InstanceRecommendationOption
impl Default for InstanceRecommendationOption
Source§fn default() -> InstanceRecommendationOption
fn default() -> InstanceRecommendationOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceRecommendationOption
impl<'de> Deserialize<'de> for InstanceRecommendationOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InstanceRecommendationOption
impl PartialEq for InstanceRecommendationOption
Source§fn eq(&self, other: &InstanceRecommendationOption) -> bool
fn eq(&self, other: &InstanceRecommendationOption) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InstanceRecommendationOption
Auto Trait Implementations§
impl Freeze for InstanceRecommendationOption
impl RefUnwindSafe for InstanceRecommendationOption
impl Send for InstanceRecommendationOption
impl Sync for InstanceRecommendationOption
impl Unpin for InstanceRecommendationOption
impl UnwindSafe for InstanceRecommendationOption
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
Mutably borrows from an owned value. Read more