pub struct MsbInput {
pub malo_id: String,
pub nb_mp_id: String,
pub msb_mp_id: String,
pub rechnungsnummer: String,
pub period_from: Date,
pub period_to: Date,
pub invoice_date: Date,
pub due_date: Date,
pub grundgebuehr_eur_per_month: Decimal,
pub billing_months: u32,
pub messdienstleistung_eur: Option<Decimal>,
}Expand description
Input for MSB (Messstellenbetreiber) invoice calculation.
Covers:
- PID 31009 — MSB-Rechnung (NB → MSB, monthly metering service settlement)
The NB bills the MSB for the metering service period. Positions:
- Grundgebühr Messstellenbetrieb — flat monthly base fee × billing months.
- Messdienstleistung — optional per-period measurement service fee.
Fields§
§malo_id: String11-digit Marktlokations-ID.
nb_mp_id: StringInvoice sender — Netzbetreiber MP-ID.
msb_mp_id: StringInvoice recipient — Messstellenbetreiber MP-ID.
rechnungsnummer: StringUnique invoice number.
period_from: DateStart of billing period (inclusive, German local date).
period_to: DateEnd of billing period (inclusive, German local date).
invoice_date: DateInvoice issue date.
due_date: DatePayment due date.
grundgebuehr_eur_per_month: DecimalGrundgebühr Messstellenbetrieb in EUR/month (from PreisblattMessung).
billing_months: u32Number of full calendar months in the billing period.
messdienstleistung_eur: Option<Decimal>Optional Messdienstleistung flat fee in EUR for the full period.
None when the MSB provides only the meter, not a separate measurement service.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MsbInput
impl RefUnwindSafe for MsbInput
impl Send for MsbInput
impl Sync for MsbInput
impl Unpin for MsbInput
impl UnsafeUnpin for MsbInput
impl UnwindSafe for MsbInput
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