pub struct CashForecastGenerator { /* private fields */ }Expand description
Generates cash forecasts with probability-weighted items.
Implementations§
Source§impl CashForecastGenerator
impl CashForecastGenerator
Sourcepub fn new(config: CashForecastingConfig, seed: u64) -> Self
pub fn new(config: CashForecastingConfig, seed: u64) -> Self
Creates a new cash forecast generator.
Sourcepub fn generate(
&mut self,
entity_id: &str,
currency: &str,
forecast_date: NaiveDate,
ar_items: &[ArAgingItem],
ap_items: &[ApAgingItem],
disbursements: &[ScheduledDisbursement],
) -> CashForecast
pub fn generate( &mut self, entity_id: &str, currency: &str, forecast_date: NaiveDate, ar_items: &[ArAgingItem], ap_items: &[ApAgingItem], disbursements: &[ScheduledDisbursement], ) -> CashForecast
Generates a cash forecast from various input sources.
Auto Trait Implementations§
impl Freeze for CashForecastGenerator
impl RefUnwindSafe for CashForecastGenerator
impl Send for CashForecastGenerator
impl Sync for CashForecastGenerator
impl Unpin for CashForecastGenerator
impl UnsafeUnpin for CashForecastGenerator
impl UnwindSafe for CashForecastGenerator
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