Skip to main content

tariff

Function tariff 

Source
pub fn tariff(id: &str, price_per_kwh: &str) -> Result<Tariff, InvalidString>
Available on crate feature testkit only.
Expand description

A simple Tariff: a per-kWh price with 10% VAT.

ยงErrors

Returns InvalidString if id is not a usable CiString(36).