cash 0.3.4

An immutable library to create, calculate, format and exchange currency.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::HashMap;
use crate::LogMap;

// struct Cash holds the actual data of the Cash object/wallet
pub struct Cash {
	pub currency: String, // currency in Cash
	pub amount: f64, // amount of Cash
	pub allow_negatives: bool, // whether Cash allows the amount to go below 0 either at init or update
	pub log: HashMap<String, String>, // a history record of events
	pub newlog: Vec<LogMap>,
	// pub date: String, // date of init or last edit
}