Struct bill::BillItem [] [src]

pub struct BillItem<P> {
    pub amount: Amount,
    pub product: P,
}

Maps a BillProduct to an amount.

Fields

Methods

impl<P: BillProduct> BillItem<P>
[src]

price * amount

price * tax * amount, tax being less than 1.0

gross + tax

Trait Implementations

impl<P: Debug> Debug for BillItem<P>
[src]

Formats the value using the given formatter.