Skip to main content

Crate flexpool_core

Crate flexpool_core 

Source
Expand description

flexpool domain core.

Exact quantities (units), the Europe/Berlin quarter-hour calendar (calendar), portfolio identities (portfolio), and the one place where a planner’s floating-point number becomes a market quantity (quantize).

This crate reads no clock, performs no I/O and spawns no task: time and data are parameters. cargo xtask check-purity enforces it.

Re-exports§

pub use calendar::BusinessDay;
pub use calendar::CalendarError;
pub use calendar::Quarter;
pub use portfolio::AssetId;
pub use portfolio::IdError;
pub use portfolio::OwnerId;
pub use portfolio::PoolId;
pub use portfolio::ProductId;
pub use portfolio::ReserveGroupId;
pub use portfolio::SliceId;
pub use portfolio::TechnicalUnitId;
pub use quantize::Granularity;
pub use quantize::QuantizeError;
pub use quantize::Quantized;
pub use quantize::RoundDirection;
pub use quantize::quantize;
pub use units::Eur;
pub use units::EurPerMwPerH;
pub use units::EurPerMwh;
pub use units::Kw;
pub use units::Kwh;
pub use units::parse_plain;

Modules§

calendar
The Europe/Berlin quarter-hour calendar.
portfolio
Portfolio identities: slugs [a-z0-9-]{1,64} for owners, pools, reserve groups, technical units, assets, slices and products. The portfolio itself — records, references and their validation — lives in flexpool-portfolio.
quantize
The single boundary where a planner’s f64 becomes a market quantity.
units
Exact physical and monetary quantities.