Struct bill::Product [] [src]

pub struct Product<'a> {
    pub name: &'a str,
    pub price: Money,
    pub tax: Tax,
}

Describes one particular product. Amount is handled by BillItem

You can write your own product, just implement BillProduct

Fields

Methods

impl<'a> Product<'a>
[src]

Instantiates a new Product.

Trait Implementations

impl<'a> Clone for Product<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Product<'a>
[src]

impl<'a> Debug for Product<'a>
[src]

Formats the value using the given formatter.

impl<'a> BillProduct for Product<'a>
[src]

Price in Money

A name is a term used for identification.