pub enum AccountCategory {
CurrentAssets,
NonCurrentAssets,
CurrentLiabilities,
NonCurrentLiabilities,
Equity,
Revenue,
CostOfGoodsSold,
OperatingExpenses,
OtherIncome,
OtherExpenses,
}Expand description
Account category for grouping.
Variants§
CurrentAssets
Current assets (cash, AR, inventory).
NonCurrentAssets
Non-current assets (fixed assets, intangibles).
CurrentLiabilities
Current liabilities (AP, short-term debt).
NonCurrentLiabilities
Non-current liabilities (long-term debt).
Equity
Equity (capital, retained earnings).
Revenue
Revenue.
CostOfGoodsSold
Cost of goods sold.
OperatingExpenses
Operating expenses.
OtherIncome
Other income.
OtherExpenses
Other expenses.
Implementations§
Source§impl AccountCategory
impl AccountCategory
Sourcepub fn from_account_type(account_type: AccountType) -> Self
pub fn from_account_type(account_type: AccountType) -> Self
Determine category from account type.
Sourcepub fn from_account_code(code: &str) -> Self
pub fn from_account_code(code: &str) -> Self
Determine category from account code (US GAAP heuristic).
For framework-aware classification, use
from_account_code_with_framework.
Sourcepub fn from_account_code_with_framework(code: &str, framework: &str) -> Self
pub fn from_account_code_with_framework(code: &str, framework: &str) -> Self
Determine category using framework-aware classification.
framework is the framework string (e.g. "us_gaap", "french_gaap",
"german_gaap", "ifrs"). Uses [FrameworkAccounts] internally.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get display name.
Sourcepub fn is_balance_sheet(&self) -> bool
pub fn is_balance_sheet(&self) -> bool
Is this a balance sheet category?
Sourcepub fn is_income_statement(&self) -> bool
pub fn is_income_statement(&self) -> bool
Is this an income statement category?
Trait Implementations§
Source§impl Clone for AccountCategory
impl Clone for AccountCategory
Source§fn clone(&self) -> AccountCategory
fn clone(&self) -> AccountCategory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountCategory
impl Debug for AccountCategory
Source§impl<'de> Deserialize<'de> for AccountCategory
impl<'de> Deserialize<'de> for AccountCategory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AccountCategory
impl Hash for AccountCategory
Source§impl Ord for AccountCategory
impl Ord for AccountCategory
Source§fn cmp(&self, other: &AccountCategory) -> Ordering
fn cmp(&self, other: &AccountCategory) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AccountCategory
impl PartialEq for AccountCategory
Source§impl PartialOrd for AccountCategory
impl PartialOrd for AccountCategory
Source§impl Serialize for AccountCategory
impl Serialize for AccountCategory
impl Copy for AccountCategory
impl Eq for AccountCategory
impl StructuralPartialEq for AccountCategory
Auto Trait Implementations§
impl Freeze for AccountCategory
impl RefUnwindSafe for AccountCategory
impl Send for AccountCategory
impl Sync for AccountCategory
impl Unpin for AccountCategory
impl UnsafeUnpin for AccountCategory
impl UnwindSafe for AccountCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.