Struct proj_billing::billing::consumption::floating_consumption::FloatingConsumption [] [src]

pub struct FloatingConsumption {
    pub hour_of_week: u8,
    pub units_consumed: f32,
}

Consumption information for hourly time of use billing

Fields

The hour in the week: e.g. 7am on a Tuesday would be 24+7 hours.

The number of units of the utility which were consumed in the last hour

Trait Implementations

impl Debug for FloatingConsumption
[src]

Formats the value using the given formatter.

impl Consumption<f32, u8> for FloatingConsumption
[src]

Co-efficients for the number of consumption units for each hour of day each week

Checks that the values stored in a Consumption object are legal

Instance new consumption

Make an empty prices object

Set Price for a particular other

Get Price of a particular other

Length of a Prices

Cons from raw bytes

Prices from raw bytes

Prices to raw bytes