pub struct TimeEntry {Show 13 fields
pub entry_id: String,
pub employee_id: String,
pub date: NaiveDate,
pub hours_regular: f64,
pub hours_overtime: f64,
pub hours_pto: f64,
pub hours_sick: f64,
pub project_id: Option<String>,
pub cost_center: Option<String>,
pub description: Option<String>,
pub approval_status: TimeApprovalStatus,
pub approved_by: Option<String>,
pub submitted_at: Option<NaiveDate>,
}Expand description
A time entry recording hours worked or leave taken by an employee.
Fields§
§entry_id: StringUnique time entry identifier
employee_id: StringEmployee who recorded the time
date: NaiveDateDate the time entry applies to
hours_regular: f64Regular hours worked
hours_overtime: f64Overtime hours worked
hours_pto: f64Paid time off hours used
hours_sick: f64Sick leave hours used
project_id: Option<String>Project the time was charged to
cost_center: Option<String>Cost center allocation
description: Option<String>Description of work performed
approval_status: TimeApprovalStatusCurrent approval status
approved_by: Option<String>Manager who approved/rejected the entry
submitted_at: Option<NaiveDate>Date the entry was submitted for approval
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeEntry
impl<'de> Deserialize<'de> for TimeEntry
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 TimeEntry
impl RefUnwindSafe for TimeEntry
impl Send for TimeEntry
impl Sync for TimeEntry
impl Unpin for TimeEntry
impl UnwindSafe for TimeEntry
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