Skip to main content

compose_expense

Function compose_expense 

Source
pub fn compose_expense(fm: &Frontmatter) -> String
Expand description

expense<date> — <amount> <currency> — <vendor>.

<amount> <currency> collapse to whichever is present; missing top-level segments (date / amount-currency / vendor) drop out of the -joined line so a partial record still reads cleanly.