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>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Copy for Product<'a>
[src]
impl<'a> Debug for Product<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more