pub struct CostSuggestion {
pub category: OptimizationCategory,
pub title: String,
pub description: String,
pub potential_savings: f64,
pub action: String,
}Expand description
A single actionable cost optimization suggestion
Fields§
§category: OptimizationCategoryCategory for grouping
title: StringShort title (displayed in list)
description: StringFull description with supporting data
potential_savings: f64Estimated monthly savings in dollars (0 if unknown)
action: StringConcrete action the user can take
Trait Implementations§
Source§impl Clone for CostSuggestion
impl Clone for CostSuggestion
Source§fn clone(&self) -> CostSuggestion
fn clone(&self) -> CostSuggestion
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 CostSuggestion
impl Debug for CostSuggestion
Source§impl<'de> Deserialize<'de> for CostSuggestion
impl<'de> Deserialize<'de> for CostSuggestion
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 CostSuggestion
impl RefUnwindSafe for CostSuggestion
impl Send for CostSuggestion
impl Sync for CostSuggestion
impl Unpin for CostSuggestion
impl UnsafeUnpin for CostSuggestion
impl UnwindSafe for CostSuggestion
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