odin_palace 0.1.0

Parser and analyzer for bank statements in the 1CClientBankExchange format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::parser::Statement;
use indexmap::IndexMap;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum SectionType {
    Document,
    Account,
}

#[derive(Debug)]
pub enum HookError {
    Warning(String),
    Error(String),
}

pub type SectionHook =
    dyn Fn(SectionType, &mut IndexMap<String, String>, &Statement) -> Result<(), HookError>;