pub struct SettlementPosition {
pub text: String,
pub kind: BillingPositionKind,
pub quantity: Decimal,
pub unit: QuantityUnit,
pub unit_price_eur: Decimal,
pub net_eur: Decimal,
pub spot_price_formula: Option<SpotPriceFormula>,
pub trace: CalculationTrace,
}Expand description
One line of a settlement.
Carries no position number and no BDEW Artikel-ID: both are properties of the document that presents the settlement, not of the calculation. An adapter numbers the positions it renders and resolves article identifiers from the price sheet.
Fields§
§text: StringHuman-readable description.
kind: BillingPositionKindSemantic kind — what was charged, independent of how it is coded.
quantity: DecimalMetered or contracted quantity.
unit: QuantityUnitUnit of measure.
unit_price_eur: DecimalUnit price in EUR.
net_eur: DecimalNet amount in EUR, rounded to 5 decimal places.
May be negative for credit positions (Mindermengen, Gutschriften).
spot_price_formula: Option<SpotPriceFormula>The formula behind the rate, where one applied.
trace: CalculationTraceWhy this amount is what it is.
Trait Implementations§
Source§impl Clone for SettlementPosition
impl Clone for SettlementPosition
Source§fn clone(&self) -> SettlementPosition
fn clone(&self) -> SettlementPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SettlementPosition
impl Debug for SettlementPosition
Auto Trait Implementations§
impl Freeze for SettlementPosition
impl RefUnwindSafe for SettlementPosition
impl Send for SettlementPosition
impl Sync for SettlementPosition
impl Unpin for SettlementPosition
impl UnsafeUnpin for SettlementPosition
impl UnwindSafe for SettlementPosition
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