pub struct BudgetLineItem {Show 13 fields
pub line_id: String,
pub budget_id: String,
pub account_code: String,
pub account_name: String,
pub department: Option<String>,
pub cost_center: Option<String>,
pub budget_amount: Decimal,
pub actual_amount: Decimal,
pub variance: Decimal,
pub variance_percent: f64,
pub period_start: NaiveDate,
pub period_end: NaiveDate,
pub notes: Option<String>,
}Expand description
An individual line item within a budget, representing a single account/cost center allocation.
Fields§
§line_id: StringUnique line item identifier
budget_id: StringParent budget identifier
account_code: StringGL account code
account_name: StringGL account name
department: Option<String>Department this line applies to
cost_center: Option<String>Cost center this line applies to
budget_amount: DecimalBudgeted amount for the period
actual_amount: DecimalActual amount recorded for the period
variance: DecimalVariance (actual - budget)
variance_percent: f64Variance as a percentage of budget
period_start: NaiveDateStart of the budget period for this line
period_end: NaiveDateEnd of the budget period for this line
notes: Option<String>Free-text notes or explanations for variances
Trait Implementations§
Source§impl Clone for BudgetLineItem
impl Clone for BudgetLineItem
Source§fn clone(&self) -> BudgetLineItem
fn clone(&self) -> BudgetLineItem
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 BudgetLineItem
impl Debug for BudgetLineItem
Source§impl<'de> Deserialize<'de> for BudgetLineItem
impl<'de> Deserialize<'de> for BudgetLineItem
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 BudgetLineItem
impl RefUnwindSafe for BudgetLineItem
impl Send for BudgetLineItem
impl Sync for BudgetLineItem
impl Unpin for BudgetLineItem
impl UnwindSafe for BudgetLineItem
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