pub struct Budget {
pub budget_id: String,
pub company_code: String,
pub fiscal_year: u32,
pub name: String,
pub status: BudgetStatus,
pub total_budget: Decimal,
pub total_actual: Decimal,
pub total_variance: Decimal,
pub line_items: Vec<BudgetLineItem>,
pub approved_by: Option<String>,
pub approved_date: Option<NaiveDate>,
}Expand description
A budget representing planned financial targets for a fiscal year.
Fields§
§budget_id: StringUnique budget identifier
company_code: StringCompany code this budget belongs to
fiscal_year: u32Fiscal year the budget covers
name: StringHuman-readable name of the budget (e.g., “FY2025 Operating Budget”)
status: BudgetStatusCurrent status of the budget
total_budget: DecimalTotal budgeted amount across all line items
total_actual: DecimalTotal actual amount across all line items
total_variance: DecimalTotal variance across all line items
line_items: Vec<BudgetLineItem>Individual budget line items
approved_by: Option<String>Person who approved the budget
approved_date: Option<NaiveDate>Date the budget was approved
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Budget
impl<'de> Deserialize<'de> for Budget
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 Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnwindSafe for Budget
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