Skip to main content

NotesGeneratorContext

Struct NotesGeneratorContext 

Source
pub struct NotesGeneratorContext {
Show 23 fields pub entity_code: String, pub framework: String, pub period: String, pub period_end: NaiveDate, pub currency: String, pub revenue_contract_count: usize, pub revenue_amount: Option<Decimal>, pub avg_obligations_per_contract: Option<Decimal>, pub total_ppe_gross: Option<Decimal>, pub accumulated_depreciation: Option<Decimal>, pub statutory_tax_rate: Option<Decimal>, pub effective_tax_rate: Option<Decimal>, pub deferred_tax_asset: Option<Decimal>, pub deferred_tax_liability: Option<Decimal>, pub provision_count: usize, pub total_provisions: Option<Decimal>, pub related_party_transaction_count: usize, pub related_party_total_value: Option<Decimal>, pub subsequent_event_count: usize, pub adjusting_event_count: usize, pub pension_plan_count: usize, pub total_dbo: Option<Decimal>, pub total_plan_assets: Option<Decimal>,
}
Expand description

Summary data drawn from the overall generation result, passed into the notes generator so it can decide which notes to include and what numbers to populate them with.

Fields§

§entity_code: String

Entity / company code for which notes are prepared.

§framework: String

Reporting framework name (e.g. “IFRS”, “US GAAP”).

§period: String

Fiscal period descriptor (e.g. “FY2024”).

§period_end: NaiveDate

Period end date.

§currency: String

Reporting currency code (e.g. “USD”).

§revenue_contract_count: usize

Number of customer contracts recognised during the period.

§revenue_amount: Option<Decimal>

Total revenue amount.

§avg_obligations_per_contract: Option<Decimal>

Average number of performance obligations per contract.

§total_ppe_gross: Option<Decimal>

Total gross fixed asset carrying amount.

§accumulated_depreciation: Option<Decimal>

Accumulated depreciation on fixed assets.

§statutory_tax_rate: Option<Decimal>

Statutory tax rate (e.g. 0.21 for 21 %).

§effective_tax_rate: Option<Decimal>

Effective tax rate actually incurred.

§deferred_tax_asset: Option<Decimal>

Deferred tax asset balance.

§deferred_tax_liability: Option<Decimal>

Deferred tax liability balance.

§provision_count: usize

Number of provisions recognised.

§total_provisions: Option<Decimal>

Total carrying value of all provisions.

§related_party_transaction_count: usize

Number of related party transactions identified.

§related_party_total_value: Option<Decimal>

Total value of related party transactions.

§subsequent_event_count: usize

Number of subsequent events identified.

§adjusting_event_count: usize

Number of adjusting subsequent events.

§pension_plan_count: usize

Number of defined benefit plans.

§total_dbo: Option<Decimal>

Total DBO at period end.

§total_plan_assets: Option<Decimal>

Total plan assets at fair value.

Trait Implementations§

Source§

impl Clone for NotesGeneratorContext

Source§

fn clone(&self) -> NotesGeneratorContext

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NotesGeneratorContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NotesGeneratorContext

Source§

fn default() -> NotesGeneratorContext

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more