Struct proj_billing::billing::three_party::CustomerState [] [src]

pub struct CustomerState<P: Read + Write, M: Read + Write> {
    pub prices: Prices,
    // some fields omitted
}

State associated with the customer

Fields

The prices currently used to calculate the bill

Methods

impl<P: Read + Write, M: Read + Write> CustomerState<P, M>
[src]

Create a new CustomerState

For debugging and logging: outputs a human readable representation of the cons and other fields of the consumption table

Calculate the bill and send it to the provider and return the bill

check for new consumption messages from the meter

check for price changes from the provider