pub struct SimpleEmployee {
pub employee_id: String,
pub employment_rate: i32,
pub employee_name: String,
pub hours_sum_until_today: f64,
pub until_today_expected: f64,
}Expand description
A slimmed‐down version of Employee containing only the requested fields.
Fields§
§employee_id: String§employment_rate: i32§employee_name: String§hours_sum_until_today: f64§until_today_expected: f64Trait Implementations§
Source§impl Debug for SimpleEmployee
impl Debug for SimpleEmployee
Source§impl<'de> Deserialize<'de> for SimpleEmployee
impl<'de> Deserialize<'de> for SimpleEmployee
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 SimpleEmployee
impl RefUnwindSafe for SimpleEmployee
impl Send for SimpleEmployee
impl Sync for SimpleEmployee
impl Unpin for SimpleEmployee
impl UnwindSafe for SimpleEmployee
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