Skip to main content

CapacityBlock

Struct CapacityBlock 

Source
pub struct CapacityBlock {
    pub leistung_kwp: Decimal,
    pub verguetungssatz_ct: Decimal,
    pub inbetriebnahme: Date,
    pub foerderendedatum: Date,
}
Expand description

A single capacity block for §24 EEG Anlagenerweiterung (plant extension).

When an existing EEG plant is extended with additional capacity (e.g. adding 5 kWp to an existing 10 kWp installation), the extension receives its own:

  • Feed-in tariff rate (the statutory rate at the extension date, which is typically lower due to annual degression)
  • 20-year Förderdauer starting from the extension commissioning date

The settlement engine allocates the measured Einspeisemenge proportionally across all blocks by installed capacity (§24 Abs. 1 EEG 2023).

§Zusammenlegung vs. Erweiterung

  • Zusammenlegung (§24 EEG): two legally separate plants merged into one entity. Both plants contribute their original rates and end dates. Model via two CapacityBlocks.

  • Erweiterung: capacity added to an existing plant at a later date. New capacity block gets current statutory rate from extension date. Model via one primary block (in SettleInput) + one CapacityBlock.

§Example

use eeg_billing::CapacityBlock;
use rust_decimal::dec;
use time::macros::date;

// Original 10 kWp at 9.25 ct/kWh (EEG 2020)
let original = CapacityBlock {
    leistung_kwp:     dec!(10),
    verguetungssatz_ct: dec!(9.25),
    inbetriebnahme:   date!(2020-03-15),
    foerderendedatum: date!(2040-03-15),
};

// Extension: +5 kWp at 8.11 ct/kWh (EEG 2023)
let extension = CapacityBlock {
    leistung_kwp:     dec!(5),
    verguetungssatz_ct: dec!(8.11),
    inbetriebnahme:   date!(2024-06-01),
    foerderendedatum: date!(2044-06-01),
};

Fields§

§leistung_kwp: Decimal

Installed capacity for this block in kWp (or kW_el for KWKG).

§verguetungssatz_ct: Decimal

EEG feed-in tariff rate for this block in ct/kWh.

Fixed at the commissioning date of this block for its full Förderdauer.

§inbetriebnahme: Date

Commissioning date for this block (Inbetriebnahmedatum).

§foerderendedatum: Date

Subsidy end date for this block (inbetriebnahme + 20 years).

When the billing period start date exceeds this, the block is expired and contributes EUR 0 (or EPEX spot price for PostEegSpot transition).

Trait Implementations§

Source§

impl Clone for CapacityBlock

Source§

fn clone(&self) -> CapacityBlock

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CapacityBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.