pub struct SpendAnalysis {
pub category_id: String,
pub category_name: String,
pub company_code: String,
pub total_spend: Decimal,
pub vendor_count: u32,
pub transaction_count: u32,
pub hhi_index: f64,
pub vendor_shares: Vec<VendorSpendShare>,
pub contract_coverage: f64,
pub preferred_vendor_coverage: f64,
pub price_trend_pct: f64,
pub fiscal_year: u16,
}Expand description
Spend analysis for a procurement category.
Fields§
§category_id: StringCategory identifier (e.g., GL account group or material group)
category_name: StringCategory description
company_code: StringCompany code
total_spend: DecimalTotal spend in the analysis period
vendor_count: u32Number of active vendors in this category
transaction_count: u32Number of transactions in this category
hhi_index: f64Herfindahl-Hirschman Index (0-10000) measuring vendor concentration
Top vendor spend shares
contract_coverage: f64Percentage of spend under contract
preferred_vendor_coverage: f64Percentage of spend through preferred vendors
price_trend_pct: f64Average unit price trend (year-over-year change)
fiscal_year: u16Analysis period (fiscal year)
Trait Implementations§
Source§impl Clone for SpendAnalysis
impl Clone for SpendAnalysis
Source§fn clone(&self) -> SpendAnalysis
fn clone(&self) -> SpendAnalysis
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 SpendAnalysis
impl Debug for SpendAnalysis
Source§impl<'de> Deserialize<'de> for SpendAnalysis
impl<'de> Deserialize<'de> for SpendAnalysis
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 SpendAnalysis
impl RefUnwindSafe for SpendAnalysis
impl Send for SpendAnalysis
impl Sync for SpendAnalysis
impl Unpin for SpendAnalysis
impl UnwindSafe for SpendAnalysis
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