Skip to main content

TimelineEffects

Struct TimelineEffects 

Source
pub struct TimelineEffects {
Show 14 fields pub drift: DriftAdjustments, pub volume_multiplier: f64, pub amount_multiplier: f64, pub error_rate_delta: f64, pub processing_time_multiplier: f64, pub entity_changes: EntityChanges, pub account_remapping: HashMap<String, String>, pub control_changes: ControlChanges, pub special_entries: Vec<SpecialEntryRequest>, pub active_org_events: Vec<String>, pub active_process_events: Vec<String>, pub active_tech_events: Vec<String>, pub in_parallel_posting: bool, pub migration_phase: Option<String>,
}
Expand description

Timeline effects computed for a specific date.

Fields§

§drift: DriftAdjustments

Drift adjustments from base drift controller.

§volume_multiplier: f64

Volume multiplier from all events.

§amount_multiplier: f64

Amount multiplier from all events.

§error_rate_delta: f64

Error rate delta (additive).

§processing_time_multiplier: f64

Processing time multiplier.

§entity_changes: EntityChanges

Entity changes (additions, removals).

§account_remapping: HashMap<String, String>

Account remapping (old account -> new account).

§control_changes: ControlChanges

Control changes active.

§special_entries: Vec<SpecialEntryRequest>

Special entries to generate (e.g., goodwill, fair value adjustments).

§active_org_events: Vec<String>

Active organizational events.

§active_process_events: Vec<String>

Active process events.

§active_tech_events: Vec<String>

Active technology events.

§in_parallel_posting: bool

Whether in parallel posting mode (dual system entry).

§migration_phase: Option<String>

Current ERP migration phase if applicable.

Implementations§

Source§

impl TimelineEffects

Source

pub fn neutral() -> Self

Create a new effects instance with neutral values.

Source

pub fn combined_volume_multiplier(&self) -> f64

Get the combined volume multiplier including drift.

Source

pub fn combined_amount_multiplier(&self) -> f64

Get the combined amount multiplier including drift.

Source

pub fn total_error_rate(&self, base_error_rate: f64) -> f64

Get the total error rate (base + delta).

Source

pub fn has_active_events(&self) -> bool

Check if any events are active.

Trait Implementations§

Source§

impl Clone for TimelineEffects

Source§

fn clone(&self) -> TimelineEffects

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 TimelineEffects

Source§

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

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

impl Default for TimelineEffects

Source§

fn default() -> TimelineEffects

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, 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> 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