pub struct ProvisionGenerator { /* private fields */ }Expand description
Generates provisions and contingencies data for a reporting entity.
Implementations§
Source§impl ProvisionGenerator
impl ProvisionGenerator
Sourcepub fn generate(
&mut self,
entity_code: &str,
currency: &str,
revenue_proxy: Decimal,
reporting_date: NaiveDate,
period_label: &str,
framework: &str,
) -> ProvisionSnapshot
pub fn generate( &mut self, entity_code: &str, currency: &str, revenue_proxy: Decimal, reporting_date: NaiveDate, period_label: &str, framework: &str, ) -> ProvisionSnapshot
Generate provisions and contingencies for one entity.
§Parameters
entity_code: company / entity identifiercurrency: reporting currency code (e.g."USD")revenue_proxy: approximate annual revenue used to size warranty provisionsreporting_date: balance-sheet date (provisions dated to this period)period_label: label for the movement roll-forward (e.g."FY2024")framework:"IFRS"or"US_GAAP"industry: optional industry tag for provision-type weights
Auto Trait Implementations§
impl !Freeze for ProvisionGenerator
impl RefUnwindSafe for ProvisionGenerator
impl Send for ProvisionGenerator
impl Sync for ProvisionGenerator
impl Unpin for ProvisionGenerator
impl UnsafeUnpin for ProvisionGenerator
impl UnwindSafe for ProvisionGenerator
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