pub struct EmploymentDetails {
pub annual_salary: Option<Pay>,
pub hire_date: Option<NaiveDate>,
}Expand description
An object representing employment details found on a paystub.
Fields§
§annual_salary: Option<Pay>An object representing a monetary amount.
hire_date: Option<NaiveDate>Date on which the employee was hired, in the YYYY-MM-DD format.
Trait Implementations§
Source§impl Clone for EmploymentDetails
impl Clone for EmploymentDetails
Source§fn clone(&self) -> EmploymentDetails
fn clone(&self) -> EmploymentDetails
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 EmploymentDetails
impl Debug for EmploymentDetails
Source§impl Default for EmploymentDetails
impl Default for EmploymentDetails
Source§fn default() -> EmploymentDetails
fn default() -> EmploymentDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmploymentDetails
impl<'de> Deserialize<'de> for EmploymentDetails
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
Source§impl Display for EmploymentDetails
impl Display for EmploymentDetails
Auto Trait Implementations§
impl Freeze for EmploymentDetails
impl RefUnwindSafe for EmploymentDetails
impl Send for EmploymentDetails
impl Sync for EmploymentDetails
impl Unpin for EmploymentDetails
impl UnwindSafe for EmploymentDetails
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