pub struct ListAmortization { /* private fields */ }

Implementations

List of amortization elements implementation.

Create and return a new list of amortization elements.

Return
  • See description.

Add a new amortization element into the amortization list.

Arguments
  • event_type_param - Event type.
  • orig_date_param - Original date.
  • event_date_param - Event date.
  • sort_order_param - Sort order.
  • value_param - Value parameter.
  • value_expr_param - Value expression parameter.
  • periods_param - Periods parameter.
  • intervals_param - Intervals parameter.
  • frequency_param - Frequency parameter.
  • principal_decrease_param - Principal decrease.
  • principal_increase_param - Principal increase.
  • list_event_index_param - List event index.
  • event_sequence_param - Event sequence.
  • stat_sequence_param - Event stat sequence.
  • extension_param - Extension (current value, interest change, principal change, statistic value).
  • list_parameter_param - List parameter.
  • list_descriptor_param - List descriptor.
Return
  • True if successful, otherwise false.

Add a new amortization element into the amortization list.

Arguments
  • event_type_param - Event type.
  • orig_date_param - Original date.
  • event_date_param - Event date.
  • sort_order_param - Sort order.
  • value_param - Value parameter.
  • value_expr_param - Value expression parameter.
  • periods_param - Periods parameter.
  • intervals_param - Intervals parameter.
  • frequency_param - Frequency parameter.
  • principal_decrease_param - Principal decrease.
  • principal_increase_param - Principal increase.
  • interest_param - Compounded interest.
  • sl_interest_param - Straight-line interest.
  • value_to_interest_param - Value to interest.
  • value_to_principal_param - Value to principal.
  • acc_balance_param - Accrued interest balance at start of event.
  • balance_param - Beginning active balance at start of event.
  • list_event_index_param - List event index.
  • event_sequence_param - Event sequence.
  • stat_sequence_param - Event stat sequence.
  • extension_param - Extension (current value, interest change, principal change, statistic value).
  • list_parameter_param - List parameter.
  • list_descriptor_param - List descriptor.
Return
  • True if successful, otherwise false.

Copy this list of amortization elements and return a new list of amortization elements.

Arguments
  • updating_json - Updating from json.
Return
  • See description.

Get the type of the amortization element.

Return
  • See description.

Get the event type information.

Return
  • See description.

Get the date of the original event in YYYYMMDD format.

Return
  • See description.

Get the date of the amortization element in YYYYMMDD format (major sort key).

Return
  • See description.

Get the sort order within the amortization element date (minor sort key).

Return
  • See description.

Get the value of the original event.

Return
  • See description.

Get the constant value or the result of an expression.

Return
  • See description.

Get the optional value expression evaluated when the amortization list is balanced.

Return
  • See description.

Get the periods of the amortization element.

Return
  • See description.

Get the optional intervals of frequency between periods.

Return
  • See description.

Get the frequency of the amortization element.

Return
  • See description.

Get the principal decrease for period.

Return
  • See description.

Get the principal increase for period.

Return
  • See description.

Get the compounded interest for period.

Return
  • See description.

Get the straight-line interest for period.

Return
  • See description.

Get the value to interest for period.

Return
  • See description.

Get the value to principal for period.

Return
  • See description.

Get the accrued interest balance.

Return
  • See description.

Get the active balance.

Return
  • See description.

Get the index of the original event within the event list.

Return
  • See description.

Get the sequence number within the event starting from 1.

Return
  • See description.

Get the sequence number of principal change with statistics set or 0 (if not applicable).

Return
  • See description.

Get the extension.

Return
  • See description.

Get the amortization parameter list.

Return
  • See description.

Get the amortization descriptor list.

Return
  • See description.

Remove the selected event from the amortization list.

Return
  • True if successful, otherwise false.

Set the value of all amortization elements having a specified original event index.

Arguments
  • index_param - Original event index.
  • value_param - New value.

Set the value of all amortization interest events.

Arguments
  • value_param - New value.

Set the constant value or the result of an expression.

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

Set the principal decrease for period.

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

Set the principal increase for period.

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

Set the compounded interest for period.

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

Set the straight-line interest for period.

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

Set the value to interest for period.

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

Set the value to principal for period.

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

Set the accrued interest balance.

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

Set the active balance.

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

Set the sequence number of principal change with statistics set or 0 (if not applicable).

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

Sort the amortization list.

Trait Implementations

List of amortization elements default implementation.

Create and return a new list of amortization elements.

Return
  • See description.

List of amortization elements list implementation.

Clear all elements from the amortization list.

Get the count of the amortization list.

Return
  • See description.

Get the index of the selected amortization element (starting from 0).

Return
  • See description.

Select an amortization element based upon an index value.

Arguments
  • index_param - Index value of the amortization element 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.