pactole-core 0.1.0

Core domain models, validation and reports for Pactole, a plain-text double-entry accounting ledger.
Documentation
1
2
3
4
5
6
7
8
9
use crate::models::Journal;
use std::error::Error;

pub trait ReadableStorage {
    type Error: Error;

    /// Reads the full journal from the underlying storage.
    fn journal(&self) -> Result<Journal, Self::Error>;
}