pub struct GnuCash { /* private fields */ }Expand description
GnuCash, as bookspec’s Engine.
Implementations§
Trait Implementations§
Source§impl Engine for GnuCash
impl Engine for GnuCash
Source§fn load(&mut self, setup: &Setup) -> Result<(), Refusal>
fn load(&mut self, setup: &Setup) -> Result<(), Refusal>
Set the books up: the chart, the fixed assets, the schedules, the
parties, the members, the payees and their dated decisions, the
payment methods and the projects.
Source§fn apply(&mut self, event: &Event) -> Result<(), Refusal>
fn apply(&mut self, event: &Event) -> Result<(), Refusal>
Apply one event: an entry, a reversal, a close, a bill, an invoice,
a depreciation run, a disposal, a schedules run or a schedule’s
registration. An event the engine refuses leaves the books as they
were.
Source§fn query(&self, q: &Query) -> Result<Value, Refusal>
fn query(&self, q: &Query) -> Result<Value, Refusal>
Answer one query with the engine’s own figures. A figure is an
exact decimal string (never a JSON number: no engine may round a
cent through a float), a date is
YYYY-MM-DD, and a format
query’s value is its lines or rows. A query the engine refuses
(a period the rule refuses, a command it refuses) is an
Err.Auto Trait Implementations§
impl Freeze for GnuCash
impl RefUnwindSafe for GnuCash
impl Send for GnuCash
impl Sync for GnuCash
impl Unpin for GnuCash
impl UnsafeUnpin for GnuCash
impl UnwindSafe for GnuCash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more