pub fn current_rates_of_pay(&self) -> &RateOfPay {

        // get current date and structure for PartialOrd
        let today: DateTime<Local> = Local::now();
        let today: NaiveDate = NaiveDate::from_ymd(
            today.year(), 
            today.month(), 
            today.day());

        let target_rate = check_active_pay_rate(&self.rates_of_pay, today);

        &target_rate

    }
/// Returns the rate of pay for today's date. 
/// Checks today's date against the effective date of a rate of pay and potential future rates of pay. 
/// This returns the rates of pay that are currently active for the payscale.
Returns the rate of pay for today's date.
Checks today's date against the effective date of a rate of pay and potential future rates of pay.
This returns the rates of pay that are currently active for the payscale.
Returns the rate of pay for today ' s date . Checks today ' s date against the effective date of a rate of pay and potential future rates of pay . This returns the rates of pay that are currently active for the payscale .
pub fn current_rates_of_pay(&self) -> &RateOfPay {
        // get current date and structure for PartialOrd
        let today: DateTime<Local> = Local::now();
        let today: NaiveDate = NaiveDate::from_ymd(
            today.year(), 
            today.month(), 
            today.day());
        let target_rate = check_active_pay_rate(&self.rates_of_pay, today);
        &target_rate
    }
pub fn current_rates_of_pay ( & self ) -> & RateOfPay { // get current date and structure for PartialOrd let today : DateTime < Local > = Local :: now ( ) ; let today : NaiveDate = NaiveDate :: from_ymd ( today . year ( ) , today . month ( ) , today . day ( ) ) ; let target_rate = check_active_pay_rate ( & self . rates_of_pay , today ) ; & target_rate }
Returns the rate of pay for today's date.
Returns the rate of pay for today ' s date .
&self