pub struct ListCashflow { /* private fields */ }

Implementations

List of currently active cashflows implementation.

Create and return a new list cashflow.

Arguments
  • calc_manager_param - Calculation manager.
Return
  • See description.

Prepare to add a new cashflow into the cashflow list. If the name results in a duplicate entry, an incrementing number starting from 2 is appended to the name until a non-duplicate entry is found.

Arguments
  • name_param - The name of the cashflow.
  • list_event_param - A newly created event list.
  • elem_preferences_param - Original existing preferences element (or None to initialize all preferences).
  • group_param - Optional template group name.
Return
  • ElemCashflow if successful, otherwise error code.

Add a new cashflow into the cashflow list.

Arguments
  • elem_cashflow - Cashflow element to add.

Append to the list cashflow.

Arguments
  • list_cashflow - See description.

Copy the list cashflow and return a new list cashflow.

Arguments
  • calc_manager_param - Calculation manager.
Return
  • See description.

Create and return the cashflow statistics.

Return
  • See description.

Create a cashflow for output from the currently selected cashflow. Create the cashflow by combining principal change events that are identical except their dates but maintain a periodic flow according to the original frequencies.

Arguments
  • include_rollups - Include rollup elements.
  • include_details - Include detail elements.
  • compress_descriptor - If true merge ListDescriptor objects into a single ListDescriptor object where applicable, otherwise do not compress amortization elements that have different ListDescriptor objects.
  • omit_statistic_events - If true the statistic events are eliminated from the resulting event list.
  • updating_json - Updating from Json.
Return
  • The resulting amortization list or an error code.

Get the name of the selected cashflow.

Return
  • See description.

Get the preferences element of the selected cashflow.

Return
  • See description.

Get the mut preferences element of the selected cashflow.

Return
  • See description.

Get the event list of the selected cashflow.

Return
  • See description.

Get the event list mut of the selected cashflow.

Return
  • See description.

Get the amortization list of the selected cashflow.

Return
  • See description.

Get the calculate object of the selected cashflow.

Return
  • See description.

Get the statistic helper of the selected cashflow.

Return
  • See description.

Get the last balance result of the selected cashflow.

Return
  • See description.

Get the last amortization index.

Return
  • See description.

Get the cashflow is valid, otherwise it must be re-balanced.

Return
  • See description.

Get the currently selected cashflow has been updated.

Return
  • See description.

Get the name of the cashflow based upon an index value. The currently selected element is not changed.

Arguments
  • index_param - The index value of the cashflow (starting from 0).
Return
  • See description.

Select a cashflow based upon a cashflow name.

Arguments
  • name_param - The name of the cashflow to select.
  • is_select_param - If true select element, otherwise restore current element.
Return
  • True if successful, otherwise false.

Remove the selected cashflow from the cashflow list.

Return
  • True if successful, otherwise false.

Reset the updated value.

Set the cashflow valid.

Arguments
  • valid_param - See description.

Set the name of the selected cashflow. Duplicate names are not allowed.

Arguments
  • name_param - See description.
Return
  • True if successful, otherwise false.

Set the list event.

Arguments
  • list_event_param - See description.

Set the list amortization.

Arguments
  • list_am_param - See description.

Set the statistic helper.

Arguments
  • statistic_helper_param - See description.

Set the balance result.

Arguments
  • elem_balance_result_param - See description.

Set the last amortization index.

Arguments
  • last_am_index_param - See description.

Set the updated value.

Arguments
  • updated_param - See description.

Update the “calculate-relative” cashflow preferences for the currently selected cashflow. Called after cash flow preferences are updated.

Sort the event list.

Trait Implementations

List of currently active cashflows list implementation.

Clear all cashflows from the cashflow list.

Get the count of the cashflow list.

Return
  • See description.

Get the index of the selected cashflow (starting from 0).

Return
  • See description.

Select a cashflow based upon an index value.

Arguments
  • index_param - The index value of the cashflow to select (starting from 0).
Return
  • True if successful, otherwise false.

Set the list index.

Arguments
  • index_param - See description.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.