pactole-core 0.2.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
10
11
use crate::models::Journal;
use std::error::Error;

/// Reads a complete journal from a storage backend.
pub trait ReadableStorage {
    /// Error returned by the storage backend.
    type Error: Error;

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