pub struct SavingsAttribution {
pub customer_id: String,
pub period: String,
pub baseline_cost: MoneyV1,
pub treatment_cost: MoneyV1,
pub proven_savings: MoneyV1,
pub share_percentage: u16,
}Expand description
Attributed, evidence-backed savings for one customer billing period.
Fields§
§customer_id: String§period: String§baseline_cost: MoneyV1§treatment_cost: MoneyV1§proven_savings: MoneyV1Trait Implementations§
Source§impl Clone for SavingsAttribution
impl Clone for SavingsAttribution
Source§impl Debug for SavingsAttribution
impl Debug for SavingsAttribution
Source§impl<'de> Deserialize<'de> for SavingsAttribution
impl<'de> Deserialize<'de> for SavingsAttribution
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
impl Eq for SavingsAttribution
Source§impl PartialEq for SavingsAttribution
impl PartialEq for SavingsAttribution
Source§impl Serialize for SavingsAttribution
impl Serialize for SavingsAttribution
impl StructuralPartialEq for SavingsAttribution
Auto Trait Implementations§
impl Forget for SavingsAttribution
impl Freeze for SavingsAttribution
impl Move for SavingsAttribution
impl RefUnwindSafe for SavingsAttribution
impl Send for SavingsAttribution
impl Sync for SavingsAttribution
impl Unpin for SavingsAttribution
impl UnsafeUnpin for SavingsAttribution
impl UnwindSafe for SavingsAttribution
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