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