pub struct PriceStep {
pub from: Decimal,
pub to: Option<Decimal>,
pub unit_price_eur: Decimal,
}Expand description
One step of a rate schedule.
Fields§
§from: DecimalLower bound of the step, inclusive.
to: Option<Decimal>Upper bound, exclusive; None for the open top step.
unit_price_eur: DecimalThe rate in EUR per SpotPriceFormula::unit.
Trait Implementations§
impl Eq for PriceStep
impl StructuralPartialEq for PriceStep
Auto Trait Implementations§
impl Freeze for PriceStep
impl RefUnwindSafe for PriceStep
impl Send for PriceStep
impl Sync for PriceStep
impl Unpin for PriceStep
impl UnsafeUnpin for PriceStep
impl UnwindSafe for PriceStep
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