pub struct SpotPriceFormula {
pub reference: PriceReference,
pub unit: QuantityUnit,
pub method: TariffCalculationMethod,
pub steps: Vec<PriceStep>,
}Expand description
One line item in a grid settlement.
Carries raw numbers for the service layer to map into the required format
(BO4E Rechnungsposition, EN16931 UBL, etc.).
Invariant: net_eur == (quantity × unit_price_eur).round_dp(5).
The pricing formula behind a §14a Modul 3 spot-priced position.
Modelled as a value object rather than a serialised BO4E document. The engine
states what the formula was; translating that into
LastvariablePreisposition — or into any other representation — is the
adapter’s job. Carrying BO4E JSON here would put schema knowledge inside the
calculation, untyped and unvalidated, which is the coupling the crate exists
to avoid.
Fields§
§reference: PriceReferenceWhat the price refers to — for Modul 3 always the metered energy.
unit: QuantityUnitThe unit the price is expressed per.
method: TariffCalculationMethodHow the rate was derived.
steps: Vec<PriceStep>The rate steps that applied, in order.
Trait Implementations§
Source§impl Clone for SpotPriceFormula
impl Clone for SpotPriceFormula
Source§fn clone(&self) -> SpotPriceFormula
fn clone(&self) -> SpotPriceFormula
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more