pub enum AccountKind {
Asset,
Liability,
Equity,
Income,
Expense,
Memo,
}Expand description
What an account is, in the sense of double-entry bookkeeping.
Variants§
Asset
What the organisation owns or is owed.
Liability
What it owes.
Equity
What belongs to its owners or members.
Income
What increases the result.
Expense
What decreases the result.
Memo
Outside the balance sheet and the result: commitments, opening and closing balance sheet accounts.
Implementations§
Source§impl AccountKind
impl AccountKind
Sourcepub fn debit_normal(self) -> bool
pub fn debit_normal(self) -> bool
Whether the account normally has a debit balance (assets and expenses) – postings there are positive. Memo accounts have no normal side.
Trait Implementations§
Source§impl Clone for AccountKind
impl Clone for AccountKind
Source§fn clone(&self) -> AccountKind
fn clone(&self) -> AccountKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccountKind
Source§impl Debug for AccountKind
impl Debug for AccountKind
Source§impl<'de> Deserialize<'de> for AccountKind
impl<'de> Deserialize<'de> for AccountKind
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
impl Eq for AccountKind
Source§impl Hash for AccountKind
impl Hash for AccountKind
Source§impl Ord for AccountKind
impl Ord for AccountKind
Source§fn cmp(&self, other: &AccountKind) -> Ordering
fn cmp(&self, other: &AccountKind) -> Ordering
1.21.0 (const: unstable) · 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 AccountKind
impl PartialEq for AccountKind
Source§impl PartialOrd for AccountKind
impl PartialOrd for AccountKind
Source§impl Serialize for AccountKind
impl Serialize for AccountKind
impl StructuralPartialEq for AccountKind
Auto Trait Implementations§
impl Freeze for AccountKind
impl RefUnwindSafe for AccountKind
impl Send for AccountKind
impl Sync for AccountKind
impl Unpin for AccountKind
impl UnsafeUnpin for AccountKind
impl UnwindSafe for AccountKind
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