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
name: &'a str
price: Money
tax: Tax
Methods
impl<'a> Product<'a>
[src]
Trait Implementations
impl<'a> Clone for Product<'a>
[src]
fn clone(&self) -> Product<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more