pub struct ListEvent { /* private fields */ }

Implementations

List of events implementation.

Create and return a new list event element.

Arguments
  • cashflow_param - Originated from cashflow.
Return
  • See description.

Add a new event into the event list.

Arguments
  • event_type_param - Event type.
  • event_date_param - Event date.
  • date_expr_param - Date expression.
  • sort_order_param - Sort order.
  • value_param - Value parameter.
  • value_expr_param - Value expression parameter.
  • value_expr_balance_param - Value expression balance.
  • periods_param - Periods parameter.
  • periods_expr_param - Periods expression.
  • skip_mask_len_param - Skip mask length.
  • skip_mask_param - Skip mask.
  • intervals_param - Intervals parameter.
  • frequency_param - Frequency parameter.
  • extension_param - Extension (current value, interest change, principal change, statistic value).
  • list_parameter_param - List parameter.
  • list_descriptor_param - List descriptor.
  • event_name_param - Optional event name.
  • next_name_param - Optional next event name.
Return
  • True if successful, otherwise false.

Performs a deep copy of this event list and return a new event list.

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

Performs a deep copy of this event list into the event list parameter.

Arguments
  • list_event - The event list to copy into.
  • updating_json_param - Updating from json.
Return
  • ERROR_NONE if successful.

Performs a deep copy of selected events. Copies selected events from this event list into the event list parameter.

Arguments
  • list_event - The event list to copy into.
  • count - The direction (i.e., positive or negative) and the number of events to copy. as they are copied.
  • updating_json_param - Updating from json.
Return
  • ERROR_NONE if successful.

Performs a deep copy of the event index into the event list parameter.

Arguments
  • list_event - The event list to copy into.
  • index - The event index to copy.
  • updating_json_param - Updating from json.
Return
  • ERROR_NONE if successful.

Returns if the event was from a cashflow.

Return
  • See description.

Get the eom of the event.

Return
  • See description.

Get the type of the event.

Return
  • See description.

Get the event type information.

Return
  • See description.

Get the date of the event in YYYYMMDD format.

Return
  • See description.

Get the optional date expression evaluated when created from a template.

Return
  • See description.

Get the sort order within the event date.

Return
  • See description.

Get the constant value or the result of an expression.

Return
  • See description.

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

Return
  • See description.

Get the expression is evalulated when balanced, otherwise when amortization.

Return
  • See description.

Get the constant periods or the result of an expression.

Return
  • See description.

Get the optional periods expression evaluated when the event list is amortization.

Return
  • See description.

Get the optional length of the periods to skip when the event list is amortization.

Return
  • See description.

Get the optional periods to skip when the event list is amortization.

Return
  • See description.

Get the optional intervals of frequency between periods.

Return
  • See description.

Get the frequency of the event.

Return
  • See description.

Get the extension.

Return
  • See description.

Get the mutable extension.

Return
  • See description.

Get the event parameter list.

Return
  • See description.

Get the mutable event parameter list.

Return
  • See description.

Get the event descriptor list.

Return
  • See description.

Get the optional event name.

Return
  • See description.

Get the optional next name of the template.

Return
  • See description.

Select an event based upon the date and sort order.

Arguments
  • date_param - The date to select.
  • sort_param - The sort order to select.
Return
  • True if successful, otherwise false.

Select an event based upon an event name.

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

Select an event based upon a statistic value name.

Arguments
  • stat_name_param - The statistic value name to select.
  • is_select_param - If true select element, otherwise restore current element.
Return
  • True if successful, otherwise false.

Select an event based upon the extension type.

Arguments
  • extension_type_param - The extension type to select.
  • iteration - Select the nth iteration of the extension type.
Return
  • True if successful, otherwise false.

Remove the selected event from the event list.

Return
  • True if successful, otherwise false.

Set the event type information.

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

Set the constant date of the event in YYYYMMDD format (major sort key).

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

Set the expression date of the event in YYYYMMDD format (major sort key).

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

Set the optional date expression evaluated when created from a template.

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

Set the sort order within the event date (minor sort key).

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

Set the constant value.

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

Set the value result of an expression.

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

Set the optional value expression evaluated when the event list is amortization or balanced.

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

Set the value expression result.

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

Set the expression is evalulated when balanced, otherwise when amortization.

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

Set the constant periods.

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

Set the periods result of an expression.

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

Set the optional periods expression evaluated when the event list is amortization.

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

Set the periods expression result.

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

Set the optional periods to skip when the event list is amortization.

Arguments
  • skip_mask_len_param - Skip mask length.
  • skip_mask_param - Skip mask.
Return
  • True if successful, otherwise false.

Set the optional intervals of frequency between periods.

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

Set the frequency of the event.

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

Set the frequency of the event.

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

Set the ElemPrincipalChange object.

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

Set the ElemCurrentValue object.

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

Set the ElemInterestChange object.

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

Set the ElemStatisticValue object.

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

Set the optional event name.

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

Set the optional next name of the template.

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

Determines when the event list is sorted.

Arguments
  • sort_on_add_param - If true sort when an event is added, otherwise do not sort (for bulk adds).

Determines the sort updated.

Arguments
  • sort_updated_param - Sort updated parameter.
Return
  • True if successful, otherwise false.

Trait Implementations

List of events list implementation.

Clear all events from the event list.

Get the count of the event list.

Return
  • See description.

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

Return
  • See description.

Select an event based upon an index value.

Arguments
  • index_param - The index value of the event 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.