pub struct UpgradeRecommendation {
pub resource_type: ResourceType,
pub recommendation: String,
pub estimated_improvement: String,
pub cost_estimate: Option<CostEstimate>,
pub priority: UpgradePriority,
}Expand description
Upgrade recommendation
Fields§
§resource_type: ResourceTypeResource type to upgrade
recommendation: StringUpgrade recommendation
estimated_improvement: StringEstimated improvement
cost_estimate: Option<CostEstimate>Cost estimate
priority: UpgradePriorityPriority level
Implementations§
Source§impl UpgradeRecommendation
impl UpgradeRecommendation
Sourcepub fn resource_type(&self) -> &ResourceType
pub fn resource_type(&self) -> &ResourceType
Get the resource type
Sourcepub fn recommendation(&self) -> &str
pub fn recommendation(&self) -> &str
Get the recommendation
Sourcepub fn estimated_improvement(&self) -> &str
pub fn estimated_improvement(&self) -> &str
Get the estimated improvement
Trait Implementations§
Source§impl Clone for UpgradeRecommendation
impl Clone for UpgradeRecommendation
Source§fn clone(&self) -> UpgradeRecommendation
fn clone(&self) -> UpgradeRecommendation
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 UpgradeRecommendation
impl Debug for UpgradeRecommendation
Source§impl<'de> Deserialize<'de> for UpgradeRecommendation
impl<'de> Deserialize<'de> for UpgradeRecommendation
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
Auto Trait Implementations§
impl Freeze for UpgradeRecommendation
impl RefUnwindSafe for UpgradeRecommendation
impl Send for UpgradeRecommendation
impl Sync for UpgradeRecommendation
impl Unpin for UpgradeRecommendation
impl UnwindSafe for UpgradeRecommendation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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