pub struct FrameworkAccounts {Show 51 fields
pub ar_control: String,
pub ap_control: String,
pub inventory: String,
pub fixed_assets: String,
pub accumulated_depreciation: String,
pub gr_ir_clearing: String,
pub ic_ar_clearing: String,
pub ic_ap_clearing: String,
pub operating_cash: String,
pub bank_account: String,
pub petty_cash: String,
pub product_revenue: String,
pub service_revenue: String,
pub ic_revenue: String,
pub purchase_discount_income: String,
pub other_revenue: String,
pub sales_discounts: String,
pub sales_returns: String,
pub cogs: String,
pub raw_materials: String,
pub depreciation_expense: String,
pub salaries_wages: String,
pub rent: String,
pub interest_expense: String,
pub purchase_discounts: String,
pub fx_gain_loss: String,
pub bad_debt: String,
pub sales_tax_payable: String,
pub vat_payable: String,
pub input_vat: String,
pub tax_receivable: String,
pub tax_expense: String,
pub deferred_tax_liability: String,
pub deferred_tax_asset: String,
pub accrued_expenses: String,
pub accrued_salaries: String,
pub unearned_revenue: String,
pub short_term_debt: String,
pub long_term_debt: String,
pub ic_payable: String,
pub common_stock: String,
pub retained_earnings: String,
pub current_year_earnings: String,
pub cta: String,
pub income_summary: String,
pub dividends_paid: String,
pub general_suspense: String,
pub payroll_clearing: String,
pub bank_reconciliation_suspense: String,
pub provisions: String,
pub audit_export: AuditExportConfig,
/* private fields */
}Expand description
Maps semantic account purposes to framework-specific GL codes.
Downstream generators use field names (ar_control, cogs, …) instead of
hard-coded account numbers, making them framework-agnostic.
Fields§
§ar_control: String§ap_control: String§inventory: String§fixed_assets: String§accumulated_depreciation: String§gr_ir_clearing: String§ic_ar_clearing: String§ic_ap_clearing: String§operating_cash: String§bank_account: String§petty_cash: String§product_revenue: String§service_revenue: String§ic_revenue: String§purchase_discount_income: String§other_revenue: String§sales_discounts: String§sales_returns: String§cogs: String§raw_materials: String§depreciation_expense: String§salaries_wages: String§rent: String§interest_expense: String§purchase_discounts: String§fx_gain_loss: String§bad_debt: String§sales_tax_payable: String§vat_payable: String§input_vat: String§tax_receivable: String§tax_expense: String§deferred_tax_liability: String§deferred_tax_asset: String§accrued_expenses: String§accrued_salaries: String§unearned_revenue: String§short_term_debt: String§long_term_debt: String§ic_payable: String§common_stock: String§retained_earnings: String§current_year_earnings: String§cta: String§income_summary: String§dividends_paid: String§general_suspense: String§payroll_clearing: String§bank_reconciliation_suspense: String§provisions: String§audit_export: AuditExportConfigImplementations§
Source§impl FrameworkAccounts
impl FrameworkAccounts
Sourcepub fn classify(&self, account: &str) -> AccountCategory
pub fn classify(&self, account: &str) -> AccountCategory
Classify an account number using this framework’s rules.
Sourcepub fn classify_account_type(&self, account_code: &str) -> AccountType
pub fn classify_account_type(&self, account_code: &str) -> AccountType
Classify an account code into an AccountType using this framework’s rules.
Maps the framework-specific AccountCategory to the balance-sheet
oriented AccountType (Asset, Liability, Equity, Revenue, Expense).
Sourcepub fn classify_trial_balance_category(
&self,
account_code: &str,
) -> TrialBalanceCategory
pub fn classify_trial_balance_category( &self, account_code: &str, ) -> TrialBalanceCategory
Classify an account code into a TrialBalanceCategory using this
framework’s rules.
Provides the finer-grained trial-balance grouping (CurrentAssets, NonCurrentAssets, etc.) derived from the framework classifier.
Sourcepub fn french_gaap() -> Self
pub fn french_gaap() -> Self
French GAAP (PCG) — 6-digit accounts from crate::pcg.
Sourcepub fn german_gaap() -> Self
pub fn german_gaap() -> Self
German GAAP (HGB) — 4-digit SKR04 accounts from crate::skr.
Sourcepub fn for_framework(framework: &str) -> Self
pub fn for_framework(framework: &str) -> Self
Select accounts for a given AccountingFramework from datasynth-standards.
This is the primary entry point — other code should not hard-code framework detection logic.
Trait Implementations§
Source§impl Clone for FrameworkAccounts
impl Clone for FrameworkAccounts
Source§fn clone(&self) -> FrameworkAccounts
fn clone(&self) -> FrameworkAccounts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FrameworkAccounts
impl !RefUnwindSafe for FrameworkAccounts
impl Send for FrameworkAccounts
impl Sync for FrameworkAccounts
impl Unpin for FrameworkAccounts
impl UnsafeUnpin for FrameworkAccounts
impl !UnwindSafe for FrameworkAccounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.