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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.