eeg-billing 0.12.0

Pure EEG/KWKG feed-in settlement for German energy markets. EEG 2017–2024 (Solarpaket I), §§20–50b EEG 2023 + §7 KWKG 2023. Multi-EEG-version rates, §12 Abs. 3 UStG, §51 Negativpreisregel, §24 Anlagenerweiterung. Zero I/O, zero async, no float money.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Error type for `eeg-billing`.

use thiserror::Error;

/// Errors that can be returned by `eeg-billing` functions.
#[derive(Debug, Error)]
pub enum SettlementError {
    /// Settlement amount exceeded the representable range (> ±92 233 720 368 EUR).
    ///
    /// This is impossible in practice for any real EEG/KWKG plant.
    #[error("settlement amount out of representable range: {0}")]
    AmountOutOfRange(rust_decimal::Decimal),
}