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,
prior_opening: Option<Decimal>,
) -> ProvisionSnapshot
pub fn generate( &mut self, entity_code: &str, currency: &str, revenue_proxy: Decimal, reporting_date: NaiveDate, period_label: &str, framework: &str, prior_opening: Option<Decimal>, ) -> 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"prior_opening: opening balance of the provision from the prior period’s closing balance. WhenSome, the unwinding-of-discount is computed asprior_opening × discount_rate × period_fraction(IAS 37.60 / ASC 420). WhenNone(first period or no carry-forward data), unwinding defaults to zero.
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