pub struct IndustryAmountProfile {
pub industry: IndustryType,
pub sales_amounts: LogNormalMixtureConfig,
pub purchase_amounts: LogNormalMixtureConfig,
pub payroll_amounts: LogNormalMixtureConfig,
pub capex_amounts: ParetoConfig,
pub days_to_payment: WeibullConfig,
pub seasonality: [f64; 12],
pub line_item_range: (u8, u8),
pub avg_daily_transactions: u32,
}Expand description
Complete industry amount profile.
Fields§
§industry: IndustryTypeIndustry type
sales_amounts: LogNormalMixtureConfigSales/revenue transaction amounts
purchase_amounts: LogNormalMixtureConfigPurchase transaction amounts
payroll_amounts: LogNormalMixtureConfigPayroll transaction amounts
capex_amounts: ParetoConfigCapital expenditure amounts (heavy-tailed)
days_to_payment: WeibullConfigDays-to-payment distribution
seasonality: [f64; 12]Seasonality multipliers by month (Jan=0, Dec=11)
line_item_range: (u8, u8)Typical line item count range
avg_daily_transactions: u32Average transaction volume per day
Implementations§
Source§impl IndustryAmountProfile
impl IndustryAmountProfile
Sourcepub fn retail() -> Self
pub fn retail() -> Self
Create a retail industry profile.
Characteristics:
- High volume of small POS transactions
- Mixture of cash registers, online, and returns
- Strong seasonality (Q4 spike)
- Fast payment terms
Sourcepub fn manufacturing() -> Self
pub fn manufacturing() -> Self
Create a manufacturing industry profile.
Characteristics:
- Mix of raw materials, components, and finished goods
- Larger average transaction sizes
- B2B payment terms (Net 30-60)
- Production-driven seasonality
Sourcepub fn financial_services() -> Self
pub fn financial_services() -> Self
Create a financial services industry profile.
Characteristics:
- High-value wire transfers and ACH
- Fee-based income (many small transactions)
- Regulatory-driven patterns
- Month-end/quarter-end spikes
Sourcepub fn healthcare() -> Self
pub fn healthcare() -> Self
Create a healthcare industry profile.
Characteristics:
- Insurance claims and patient payments
- Medical supply procurement
- Regulatory and compliance costs
- Seasonal illness patterns
Sourcepub fn technology() -> Self
pub fn technology() -> Self
Create a technology/SaaS industry profile.
Characteristics:
- Subscription-based revenue
- High R&D and cloud costs
- Fast growth patterns
- Minimal seasonality
Sourcepub fn for_industry(industry: IndustryType) -> Self
pub fn for_industry(industry: IndustryType) -> Self
Get the industry profile for a given industry type.
Sourcepub fn seasonality_multiplier(&self, month: u8) -> f64
pub fn seasonality_multiplier(&self, month: u8) -> f64
Get the seasonality multiplier for a given month (0 = January).
Trait Implementations§
Source§impl Clone for IndustryAmountProfile
impl Clone for IndustryAmountProfile
Source§fn clone(&self) -> IndustryAmountProfile
fn clone(&self) -> IndustryAmountProfile
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 IndustryAmountProfile
impl Debug for IndustryAmountProfile
Source§impl Default for IndustryAmountProfile
impl Default for IndustryAmountProfile
Source§impl<'de> Deserialize<'de> for IndustryAmountProfile
impl<'de> Deserialize<'de> for IndustryAmountProfile
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 IndustryAmountProfile
impl RefUnwindSafe for IndustryAmountProfile
impl Send for IndustryAmountProfile
impl Sync for IndustryAmountProfile
impl Unpin for IndustryAmountProfile
impl UnsafeUnpin for IndustryAmountProfile
impl UnwindSafe for IndustryAmountProfile
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