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]

[src]

price * amount

[src]

price * tax * amount, tax being less than 1.0

[src]

gross + tax

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<P> Send for BillItem<P> where
    P: Send

impl<P> Sync for BillItem<P> where
    P: Sync