pub struct KpiGenerator { /* private fields */ }Expand description
Generates ManagementKpi instances with realistic values,
targets, trends, and period-over-period comparisons.
Implementations§
Source§impl KpiGenerator
impl KpiGenerator
Sourcepub fn generate(
&mut self,
company_code: &str,
period_start: NaiveDate,
period_end: NaiveDate,
config: &ManagementKpisConfig,
) -> Vec<ManagementKpi>
pub fn generate( &mut self, company_code: &str, period_start: NaiveDate, period_end: NaiveDate, config: &ManagementKpisConfig, ) -> Vec<ManagementKpi>
Generate management KPIs for the given period and configuration.
§Arguments
company_code- The company code these KPIs belong to.period_start- Start of the generation period (inclusive).period_end- End of the generation period (inclusive).config- Management KPI configuration.
Auto Trait Implementations§
impl !Freeze for KpiGenerator
impl RefUnwindSafe for KpiGenerator
impl Send for KpiGenerator
impl Sync for KpiGenerator
impl Unpin for KpiGenerator
impl UnsafeUnpin for KpiGenerator
impl UnwindSafe for KpiGenerator
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