pub struct TrialBalanceLine {
pub account_code: String,
pub account_description: String,
pub category: AccountCategory,
pub account_type: AccountType,
pub opening_balance: Decimal,
pub period_debits: Decimal,
pub period_credits: Decimal,
pub closing_balance: Decimal,
pub debit_balance: Decimal,
pub credit_balance: Decimal,
pub cost_center: Option<String>,
pub profit_center: Option<String>,
}Expand description
A single line in a trial balance.
Fields§
§account_code: StringAccount code.
account_description: StringAccount description.
category: AccountCategoryAccount category.
account_type: AccountTypeAccount type.
opening_balance: DecimalOpening balance.
period_debits: DecimalPeriod debits.
period_credits: DecimalPeriod credits.
closing_balance: DecimalClosing balance.
debit_balance: DecimalDebit balance (for trial balance display).
credit_balance: DecimalCredit balance (for trial balance display).
cost_center: Option<String>Cost center.
profit_center: Option<String>Profit center.
Implementations§
Source§impl TrialBalanceLine
impl TrialBalanceLine
Sourcepub fn net_balance(&self) -> Decimal
pub fn net_balance(&self) -> Decimal
Get the net balance.
Trait Implementations§
Source§impl Clone for TrialBalanceLine
impl Clone for TrialBalanceLine
Source§fn clone(&self) -> TrialBalanceLine
fn clone(&self) -> TrialBalanceLine
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 TrialBalanceLine
impl Debug for TrialBalanceLine
Source§impl<'de> Deserialize<'de> for TrialBalanceLine
impl<'de> Deserialize<'de> for TrialBalanceLine
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
Auto Trait Implementations§
impl Freeze for TrialBalanceLine
impl RefUnwindSafe for TrialBalanceLine
impl Send for TrialBalanceLine
impl Sync for TrialBalanceLine
impl Unpin for TrialBalanceLine
impl UnwindSafe for TrialBalanceLine
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