pub struct PcnMapper;Expand description
Belgian PCN Mapping Service
Implementations§
Source§impl PcnMapper
impl PcnMapper
Sourcepub fn map_expense_to_pcn(category: &ExpenseCategory) -> PcnAccount
pub fn map_expense_to_pcn(category: &ExpenseCategory) -> PcnAccount
Map ExpenseCategory to Belgian PCN account Based on Belgian Chart of Accounts (PCN) Class 6: Expenses
Sourcepub fn generate_report(expenses: &[Expense]) -> Vec<PcnReportLine>
pub fn generate_report(expenses: &[Expense]) -> Vec<PcnReportLine>
Generate PCN report from a list of expenses Aggregates expenses by PCN account code Returns report lines sorted by PCN account code
Auto Trait Implementations§
impl Freeze for PcnMapper
impl RefUnwindSafe for PcnMapper
impl Send for PcnMapper
impl Sync for PcnMapper
impl Unpin for PcnMapper
impl UnwindSafe for PcnMapper
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
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more