pub struct ExpenseReport {Show 14 fields
pub report_id: String,
pub employee_id: String,
pub submission_date: NaiveDate,
pub description: String,
pub status: ExpenseStatus,
pub total_amount: Decimal,
pub currency: String,
pub line_items: Vec<ExpenseLineItem>,
pub approved_by: Option<String>,
pub approved_date: Option<NaiveDate>,
pub paid_date: Option<NaiveDate>,
pub cost_center: Option<String>,
pub department: Option<String>,
pub policy_violations: Vec<String>,
}Expand description
An expense report submitted by an employee for reimbursement.
Fields§
§report_id: StringUnique expense report identifier
employee_id: StringEmployee who submitted the report
submission_date: NaiveDateDate the report was submitted
description: StringOverall description/purpose of the expense report
status: ExpenseStatusCurrent status of the expense report
total_amount: DecimalTotal amount across all line items
currency: StringCurrency code (e.g., USD, EUR)
line_items: Vec<ExpenseLineItem>Individual expense line items
approved_by: Option<String>Manager who approved/rejected the report
approved_date: Option<NaiveDate>Date the report was approved
paid_date: Option<NaiveDate>Date the reimbursement was paid
cost_center: Option<String>Cost center to charge
department: Option<String>Department to charge
policy_violations: Vec<String>List of policy violations flagged on this report
Trait Implementations§
Source§impl Clone for ExpenseReport
impl Clone for ExpenseReport
Source§fn clone(&self) -> ExpenseReport
fn clone(&self) -> ExpenseReport
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 ExpenseReport
impl Debug for ExpenseReport
Source§impl<'de> Deserialize<'de> for ExpenseReport
impl<'de> Deserialize<'de> for ExpenseReport
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 ExpenseReport
impl RefUnwindSafe for ExpenseReport
impl Send for ExpenseReport
impl Sync for ExpenseReport
impl Unpin for ExpenseReport
impl UnwindSafe for ExpenseReport
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