Skip to main content

Crate bcheck

Crate bcheck 

Source
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§

OrderedFloat
A wrapper around floats providing implementations of Eq, Ord, and Hash.
Record
Represents an entry in a check register
Transaction
Represent a transaction made.

Enums§

TransactionType
Represent the type of the transaction initiated.

Traits§

LocalDateTimeStringExt
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.