pub struct AllocationVersion {
pub erstellungszeitpunkt: OffsetDateTime,
pub datenstatus: Datenstatus,
pub rows: Vec<QuarterHourAllocation>,
}Expand description
One filing of an allocation, versioned the way MaBiS versions everything.
MaBiS Kap. 3.8.2 keys versions on the Erstellungszeitpunkt — a 17-char
timestamp, never an integer — and pairs it with a Datenstatus. Both are
reused from mako_mabis rather than restated, so a Modell-2 filing and an
ordinary Summenzeitreihe filing cannot disagree about what „final“ means.
Fields§
§erstellungszeitpunkt: OffsetDateTimeWhen this version was formed.
datenstatus: DatenstatusIts MaBiS Datenstatus.
rows: Vec<QuarterHourAllocation>The quarter hours it covers.
Implementations§
Source§impl AllocationVersion
impl AllocationVersion
Sourcepub fn delta_kwh(&self) -> Decimal
pub fn delta_kwh(&self) -> Decimal
The total Deltamenge across every quarter hour and direction.
The LPB’s exposure for this version, in kWh.
Sourcepub fn ueberdeckungen(&self) -> impl Iterator<Item = &QuarterHourAllocation>
pub fn ueberdeckungen(&self) -> impl Iterator<Item = &QuarterHourAllocation>
Every quarter hour whose claims exceeded the Netzgangzeitreihe.
Sourcepub fn erhaltung_haelt(&self) -> bool
pub fn erhaltung_haelt(&self) -> bool
true when the conservation identity holds for every row.
Sourcepub fn ist_final(&self) -> bool
pub fn ist_final(&self) -> bool
true when the Bilanzierungsmonat this version belongs to has settled.
„Abgerechnete Daten“ and „Abgerechnete Daten KBKA“ have reached their
Abrechnungsstichtag. Delegated to Datenstatus::ist_abgerechnet
rather than restated: a second copy of the code list is a copy that can
drift from the one mako-mabis publishes.
Trait Implementations§
Source§impl Clone for AllocationVersion
impl Clone for AllocationVersion
Source§fn clone(&self) -> AllocationVersion
fn clone(&self) -> AllocationVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AllocationVersion
impl Debug for AllocationVersion
Source§impl<'de> Deserialize<'de> for AllocationVersion
impl<'de> Deserialize<'de> for AllocationVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AllocationVersion
Source§impl PartialEq for AllocationVersion
impl PartialEq for AllocationVersion
Source§impl Serialize for AllocationVersion
impl Serialize for AllocationVersion
impl StructuralPartialEq for AllocationVersion
Auto Trait Implementations§
impl Freeze for AllocationVersion
impl RefUnwindSafe for AllocationVersion
impl Send for AllocationVersion
impl Sync for AllocationVersion
impl Unpin for AllocationVersion
impl UnsafeUnpin for AllocationVersion
impl UnwindSafe for AllocationVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.