pub struct SegmentGenerator { /* private fields */ }Expand description
Generates IFRS 8 / ASC 280 segment reporting data.
Implementations§
Source§impl SegmentGenerator
impl SegmentGenerator
Sourcepub fn generate(
&mut self,
company_code: &str,
period: &str,
consolidated_revenue: Decimal,
consolidated_profit: Decimal,
consolidated_assets: Decimal,
entity_seeds: &[SegmentSeed],
) -> (Vec<OperatingSegment>, SegmentReconciliation)
pub fn generate( &mut self, company_code: &str, period: &str, consolidated_revenue: Decimal, consolidated_profit: Decimal, consolidated_assets: Decimal, entity_seeds: &[SegmentSeed], ) -> (Vec<OperatingSegment>, SegmentReconciliation)
Generate operating segments and a reconciliation for one fiscal period.
§Arguments
company_code– group / parent company code used in output recordsperiod– fiscal period label (e.g. “2024-03”)consolidated_revenue– total external revenue from the consolidated ISconsolidated_profit– consolidated operating profitconsolidated_assets– consolidated total assetsentity_seeds– one entry per legal entity / product line to derive segments from
§Returns
(segments, reconciliation) where the reconciliation ties segment totals
back to the consolidated figures passed in.
Auto Trait Implementations§
impl !Freeze for SegmentGenerator
impl RefUnwindSafe for SegmentGenerator
impl Send for SegmentGenerator
impl Sync for SegmentGenerator
impl Unpin for SegmentGenerator
impl UnsafeUnpin for SegmentGenerator
impl UnwindSafe for SegmentGenerator
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