grid_tariffs/
lib.rs

1#![allow(unused)]
2//! Grid operator information
3//!
4//! This information is written for consumers specifically
5//! Costs for apartments are excluded as we do not aim to support those
6//! All costs are specified with VAT included
7//!
8//! TODO: Change it so that a grid operator can have multiple price lists (e.g. Tekniska Verken becomes one)
9//! TODO: Verify that we use the correct pricing and calculation method for each grid operator
10//! TODO: Generate GridOperator entries from Tariff API
11//!
12use std::collections::HashMap;
13
14use chrono::{NaiveDate, Utc};
15use indexmap::IndexMap;
16use serde::Serialize;
17
18pub use crate::{
19    costs::*,
20    country::{Country, CountryInfo},
21    feed_in_revenue::{FeedInRevenue, FeedInRevenueSimplified},
22    language::Language,
23    links::*,
24    money::Money,
25    operator::{GridOperator, GridOperatorSimplified},
26    peaks::*,
27    power_tariffs::{PowerTariff, PowerTariffSimplified, TariffCalculationMethod},
28    price_list::PriceList,
29    tax_reductions::*,
30    taxes::*,
31    transfer_fee::{TransferFee, TransferFeeSimplified},
32};
33use crate::{
34    currency::Currency, defs::MainFuseSizes, price_list::PriceListSimplified, registry::sweden,
35};
36pub(crate) use operator::GridOperatorBuilder;
37
38mod costs;
39mod country;
40mod currency;
41mod defs;
42mod feed_in_revenue;
43mod helpers;
44mod language;
45mod links;
46mod money;
47mod operator;
48mod peaks;
49mod power_tariffs;
50mod price_list;
51pub mod registry;
52mod tax_reductions;
53mod taxes;
54mod transfer_fee;