pub struct Event {Show 17 fields
pub date: Option<String>,
pub description: Option<String>,
pub lines: Vec<LineSpec>,
pub reverses: Option<usize>,
pub close: Option<CloseSpec>,
pub bill: Option<BillSpec>,
pub invoice: Option<InvoiceSpec>,
pub write_off: Option<WriteOffSpec>,
pub run_depreciation: Option<RunSpec>,
pub dispose_asset: Option<DisposeSpec>,
pub run_schedules: Option<RunSchedulesSpec>,
pub register_schedule: Option<ScheduleSpec>,
pub refused: Option<String>,
pub payee: Option<String>,
pub parties: Vec<ShareSpec>,
pub instrument: Option<String>,
pub older: bool,
}Expand description
One event: an entry, a reversal, a close, a bill, an invoice, a command that posts what is due, or a schedule’s registration.
Fields§
§date: Option<String>The day of an entry, a reversal, a close, a bill, an invoice or a disposal; the other commands date their own entries.
description: Option<String>An entry’s, a reversal’s, a close’s or a bill’s; a command writes its own.
lines: Vec<LineSpec>An entry’s lines.
reverses: Option<usize>The event (1-based) whose entry this one reverses.
close: Option<CloseSpec>A close of a period.
bill: Option<BillSpec>A bill.
invoice: Option<InvoiceSpec>An invoice.
write_off: Option<WriteOffSpec>A bad-debt write-off of an earlier invoice.
run_depreciation: Option<RunSpec>A depreciation run.
dispose_asset: Option<DisposeSpec>A disposal.
run_schedules: Option<RunSchedulesSpec>A run of every schedule due through a day.
register_schedule: Option<ScheduleSpec>A schedule registered by an event.
refused: Option<String>The engine refuses the event, for this reason in the examples’
words (refusal_reasons); it changes nothing.
payee: Option<String>The payee (a setup.payees name) the entry paid.
parties: Vec<ShareSpec>The parties (a setup.parties name) the entry is with, and their
shares.
instrument: Option<String>The payment method (a setup.instruments label) it was paid with.
older: boolAn entry as an earlier version could write it and this version’s commands refuse (the control guard, B-38): posted as replay posts it, since books that hold it must still read right.