test_package_swordlion 0.1.0

Crate for testing purposes
Documentation
use category::Category;
pub struct Product {
    id: u64,
    name: String,
    price: f64,
    category: Category,
}

// sub module
mod category;

impl Product {
    fn calculate_tax(&self) -> f64 {
        self.price * 0.1
    }

    pub fn product_price(&self) -> f64 {
        self.price + self.calculate_tax()
    }
}