Struct proj_billing::billing::consumption::integer_consumption::IntegerConsumption [] [src]

pub struct IntegerConsumption {
    pub hour_of_week: u64,
    pub units_consumed: i32,
}

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 IntegerConsumption
[src]

Formats the value using the given formatter.

impl Consumption<i32, u64> for IntegerConsumption
[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