pub struct Slot {
pub quarter_hour: QuarterHour,
pub from: OffsetDateTime,
pub to: OffsetDateTime,
pub energy: Energy,
pub direction: Direction,
pub provenance: Provenance,
}Expand description
One slice of a session, inside one quarter hour.
The settlement slot and the measured window are separate fields, and that is
the whole point of the type. A session whose readings run 10:07 to 10:23 has
its first slot reported under the quarter hour beginning 10:00 — that is
the settlement period the energy belongs to [A6 §IV.1] — while the energy
itself was measured over 10:07 to 10:15. Both statements are true and
they are different instants, and a consumer that reconstructs one from the
other has to guess.
One quarter hour may hold more than one slot, whenever a cut passed to
into_periods falls inside it — a session that stops charging at 10:20
yields a charging slice and an occupancy slice, both under the quarter hour
beginning 10:15. SessionSplit::market_series sums them back together for
the market side, which settles per period and not per slice.
Fields§
§quarter_hour: QuarterHourWhich quarter hour this energy settles in.
from: OffsetDateTimeThe first instant the meter series covers inside that quarter hour.
Equal to QuarterHour::start for every slot but the first, and to the
first reading’s instant for that one.
to: OffsetDateTimeThe last instant it covers — QuarterHour::end except in the final
slot, which stops at the last reading.
energy: EnergyHow much energy the session moved inside it.
direction: DirectionWhich way.
provenance: ProvenanceHow the number was arrived at.