[−][src]Trait asciii::project::spec::HasEmployees
Something that has employees
Required Methods
fn wages_date(&self) -> Option<Date<Utc>>
When were the wages payed
fn salary(&self) -> Option<Currency>
Salary
fn tax(&self) -> Option<Tax>
Tax
fn net_wages(&self) -> Option<Currency>
Sum of wages after tax
fn gross_wages(&self) -> Option<Currency>
Sum of wages before tax
fn total_time(&self) -> Option<f64>
Full number of service hours
TODO
test this against old format
fn employees_string(&self) -> Option<String>
Nicely formatted list of employees with their respective service hours
fn employees(&self) -> Option<Vec<Employee>>
List of employees and their respective service hours
fn employees_payed(&self) -> bool
Check if the employees have been payed
fn wages(&self) -> Option<Currency>
Sum of wages for the project
Provided Methods
fn to_product(&self) -> Option<Product>
Returns a product from Service
Implementors
impl<'a> HasEmployees for Hours<'a>
[src]
impl<'a> HasEmployees for Hours<'a>
fn wages_date(&self) -> Option<Date<Utc>>
[src]
fn wages_date(&self) -> Option<Date<Utc>>
fn salary(&self) -> Option<Currency>
[src]
fn salary(&self) -> Option<Currency>
fn tax(&self) -> Option<Tax>
[src]
fn tax(&self) -> Option<Tax>
fn net_wages(&self) -> Option<Currency>
[src]
fn net_wages(&self) -> Option<Currency>
fn gross_wages(&self) -> Option<Currency>
[src]
fn gross_wages(&self) -> Option<Currency>
fn total_time(&self) -> Option<f64>
[src]
fn total_time(&self) -> Option<f64>
fn employees_string(&self) -> Option<String>
[src]
fn employees_string(&self) -> Option<String>
fn employees(&self) -> Option<Vec<Employee>>
[src]
fn employees(&self) -> Option<Vec<Employee>>
fn employees_payed(&self) -> bool
[src]
fn employees_payed(&self) -> bool
fn wages(&self) -> Option<Currency>
[src]
fn wages(&self) -> Option<Currency>
fn to_product(&self) -> Option<Product>
[src]
fn to_product(&self) -> Option<Product>