Expand description
bcheck provides the ability to read bcheck files generated from the application BCheckbook When using this crate in conjunction with serde_json in your own project, it is also possible to generate the files too, though I am hoping to find a way to extend Vector, so that it can all be done via this crate.
§Quick Start
The easiest way to get things working, after adding the crate as a dependency would be like this:
use bcheck::{ Record, Transaction, TransactionType };
fn main() {
if let Ok(records) = Record::from_file("/Users/bob/Docuents/transactions.bcheck") {
for record in records {
println!("{}", record.transaction.vendor)
}
}
}
The above code will attempt to load a file, according the Mac OS file structure, and print out the vendor field of each record.
Structs§
- Ordered
Float - A wrapper around floats providing implementations of
Eq
,Ord
, andHash
. - Record
- Represents an entry in a check register
- Transaction
- Represent a transaction made.
Enums§
- Transaction
Type - Represent the type of the transaction initiated.
Traits§
- Local
Date Time String Ext - trait that allows object to become a datetime object.
- Save
- enables the ability to save data when implemented.
Functions§
- is_
proper_ date_ format - verify a given string uses the appropriate date format.