BillProduct

Trait BillProduct 

Source
pub trait BillProduct {
    // Required methods
    fn price(&self) -> Money;
    fn name(&self) -> String;
    fn tax(&self) -> Tax;
}
Expand description

Describes one particular product. Amount is handled by BillItem

Required Methods§

Source

fn price(&self) -> Money

Price in Money

Source

fn name(&self) -> String

A name is a term used for identification.

Source

fn tax(&self) -> Tax

Tax

A tax (from the Latin taxo) is a financial charge or other levy imposed upon a taxpayer (an individual or legal entity) by a state or the functional equivalent of a state to fund various public expenditures.

Implementors§