pub struct ConsumptionCost {
pub start_value: f64,
pub cost: Vec<Cost>,
pub custom_data: Option<CustomData>,
}Fields§
§start_value: f64The lowest level of consumption that defines the starting point of this consumption block. The block interval extends to the start of the next interval.
cost: Vec<Cost>§custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for ConsumptionCost
impl Clone for ConsumptionCost
Source§impl Debug for ConsumptionCost
impl Debug for ConsumptionCost
Source§impl<'de> Deserialize<'de> for ConsumptionCost
impl<'de> Deserialize<'de> for ConsumptionCost
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 ConsumptionCost
impl PartialEq for ConsumptionCost
Source§impl Serialize for ConsumptionCost
impl Serialize for ConsumptionCost
impl StructuralPartialEq for ConsumptionCost
Auto Trait Implementations§
impl Freeze for ConsumptionCost
impl RefUnwindSafe for ConsumptionCost
impl Send for ConsumptionCost
impl Sync for ConsumptionCost
impl Unpin for ConsumptionCost
impl UnsafeUnpin for ConsumptionCost
impl UnwindSafe for ConsumptionCost
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