pub struct AccountantDashboardStats {
pub total_expenses_current_month: Decimal,
pub total_paid: Decimal,
pub paid_percentage: Decimal,
pub total_pending: Decimal,
pub pending_percentage: Decimal,
pub owners_with_overdue: i64,
}Expand description
Accountant dashboard statistics.
MONETARY: amounts use rust_decimal::Decimal (cf. ADR-0007). Percentages remain Decimal to preserve exactness on display.
Fields§
§total_expenses_current_month: DecimalTotal expenses for current month
total_paid: DecimalTotal paid expenses
paid_percentage: DecimalPercentage of expenses paid
total_pending: DecimalTotal unpaid/pending expenses
pending_percentage: DecimalPercentage of expenses pending
owners_with_overdue: i64Number of owners with overdue payments
Trait Implementations§
Source§impl Debug for AccountantDashboardStats
impl Debug for AccountantDashboardStats
Source§impl<'de> Deserialize<'de> for AccountantDashboardStats
impl<'de> Deserialize<'de> for AccountantDashboardStats
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 AccountantDashboardStats
impl RefUnwindSafe for AccountantDashboardStats
impl Send for AccountantDashboardStats
impl Sync for AccountantDashboardStats
impl Unpin for AccountantDashboardStats
impl UnsafeUnpin for AccountantDashboardStats
impl UnwindSafe for AccountantDashboardStats
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
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.