pub struct AccountPeriodActivity {
pub account_code: String,
pub period_start: NaiveDate,
pub period_end: NaiveDate,
pub opening_balance: Decimal,
pub closing_balance: Decimal,
pub total_debits: Decimal,
pub total_credits: Decimal,
pub net_change: Decimal,
pub transaction_count: u32,
}Expand description
Account activity tracking within a period.
Tracks debits, credits, and transaction counts for an account over a specific period.
Fields§
§account_code: StringAccount code.
period_start: NaiveDatePeriod start date.
period_end: NaiveDatePeriod end date.
opening_balance: DecimalOpening balance at period start.
closing_balance: DecimalClosing balance at period end.
total_debits: DecimalTotal debit amounts during period.
total_credits: DecimalTotal credit amounts during period.
net_change: DecimalNet change (total_debits - total_credits).
transaction_count: u32Number of transactions during period.
Implementations§
Trait Implementations§
Source§impl Clone for AccountPeriodActivity
impl Clone for AccountPeriodActivity
Source§fn clone(&self) -> AccountPeriodActivity
fn clone(&self) -> AccountPeriodActivity
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 AccountPeriodActivity
impl Debug for AccountPeriodActivity
Source§impl Default for AccountPeriodActivity
impl Default for AccountPeriodActivity
Source§fn default() -> AccountPeriodActivity
fn default() -> AccountPeriodActivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountPeriodActivity
impl<'de> Deserialize<'de> for AccountPeriodActivity
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 AccountPeriodActivity
impl RefUnwindSafe for AccountPeriodActivity
impl Send for AccountPeriodActivity
impl Sync for AccountPeriodActivity
impl Unpin for AccountPeriodActivity
impl UnwindSafe for AccountPeriodActivity
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