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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.