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

pub struct ProviderState<T: Read + Write> {
    pub prices: Prices,
    // some fields omitted
}

State associated with the provider

Fields

The prices currently used to calculate the bill

Methods

impl<T: Read + Write> ProviderState<T>
[src]

create a new ProviderState

for implementing BillingProtocol

receive new billing information

Store and send the new prices to the customer. Does not check if the prices have actually changed before sending.