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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.