pub struct ManagementKpi {
pub kpi_id: String,
pub company_code: String,
pub name: String,
pub category: KpiCategory,
pub period_start: NaiveDate,
pub period_end: NaiveDate,
pub value: Decimal,
pub target: Decimal,
pub unit: String,
pub trend: KpiTrend,
pub year_over_year_change: Option<f64>,
pub prior_period_value: Option<Decimal>,
}Expand description
A management key performance indicator for a given period.
Fields§
§kpi_id: StringUnique KPI identifier
company_code: StringCompany code this KPI belongs to
name: StringHuman-readable name of the KPI (e.g., “Gross Margin”)
category: KpiCategoryCategory of the KPI
period_start: NaiveDateStart of the measurement period
period_end: NaiveDateEnd of the measurement period
value: DecimalActual measured value for the period
target: DecimalTarget value for the period
unit: StringUnit of measure (e.g., “%”, “days”, “USD”)
trend: KpiTrendTrend direction relative to prior periods
year_over_year_change: Option<f64>Year-over-year percentage change (e.g., 0.05 = +5%)
prior_period_value: Option<Decimal>Value from the prior period for comparison
Trait Implementations§
Source§impl Clone for ManagementKpi
impl Clone for ManagementKpi
Source§fn clone(&self) -> ManagementKpi
fn clone(&self) -> ManagementKpi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManagementKpi
impl Debug for ManagementKpi
Source§impl<'de> Deserialize<'de> for ManagementKpi
impl<'de> Deserialize<'de> for ManagementKpi
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 ManagementKpi
impl RefUnwindSafe for ManagementKpi
impl Send for ManagementKpi
impl Sync for ManagementKpi
impl Unpin for ManagementKpi
impl UnwindSafe for ManagementKpi
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