Crate kassenbon

Crate kassenbon 

Source
Expand description

§kassenbon

kassenbon is a receipt parser that converts receipt PDF file into a structured format. Currently only REWE receipts are supported.

Modules§

error

Structs§

Product
Single product from the receipt.
Receipt
Receipt containing list of products.

Enums§

OutputFormat
Serialization format when using serialize_one and serialize_many.
Quantity
Quantity of the a product.

Functions§

serialize_many
Serialize multiple receipts into JSON-formatter string.
serialize_one
Serialize single receipt into a JSON-formatted string.
try_parse_file
Try to parse PDF file and convert it into a Receipt.
try_parse_text
Try to parse receipt text and convert it into a Receipt.