Struct amfnengine::core::list_event::ListEvent
[−]pub struct ListEvent { /* private fields */ }
Implementations
impl ListEvent
impl ListEvent
List of events implementation.
pub fn add_event(
&mut self,
event_date_param: usize,
date_expr_param: &str,
sort_order_param: usize,
value_param: Decimal,
value_expr_param: &str,
value_expr_balance_param: bool,
periods_param: usize,
periods_expr_param: &str,
skip_mask_len_param: usize,
skip_mask_param: u128,
intervals_param: usize,
frequency_param: FrequencyType,
elem_extension_param: ElemExtension,
list_parameter_param: Option<ListParameter>,
list_descriptor_param: Option<ListDescriptor>,
event_name_param: &str,
next_name_param: &str
) -> bool
pub fn add_event(
&mut self,
event_date_param: usize,
date_expr_param: &str,
sort_order_param: usize,
value_param: Decimal,
value_expr_param: &str,
value_expr_balance_param: bool,
periods_param: usize,
periods_expr_param: &str,
skip_mask_len_param: usize,
skip_mask_param: u128,
intervals_param: usize,
frequency_param: FrequencyType,
elem_extension_param: ElemExtension,
list_parameter_param: Option<ListParameter>,
list_descriptor_param: Option<ListDescriptor>,
event_name_param: &str,
next_name_param: &str
) -> bool
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.
pub fn copy_list_event(
&self,
list_event: &mut ListEvent,
updating_json_param: bool
) -> Result<(), ErrorType>
pub fn copy_list_event(
&self,
list_event: &mut ListEvent,
updating_json_param: bool
) -> Result<(), ErrorType>
pub fn copy_list_event_selected(
&self,
list_event: &mut ListEvent,
count: i32,
updating_json_param: bool
) -> Result<(), ErrorType>
pub fn copy_list_event_selected(
&self,
list_event: &mut ListEvent,
count: i32,
updating_json_param: bool
) -> Result<(), ErrorType>
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.
pub fn copy_event(
&self,
list_event: &mut ListEvent,
index: usize,
updating_json_param: bool
) -> Result<(), ErrorType>
pub fn copy_event(
&self,
list_event: &mut ListEvent,
index: usize,
updating_json_param: bool
) -> Result<(), ErrorType>
pub fn elem_type(&self) -> ExtensionType
pub fn elem_type(&self) -> ExtensionType
pub fn event_type(&self) -> &str
pub fn event_type(&self) -> &str
pub fn event_date(&self) -> usize
pub fn event_date(&self) -> usize
pub fn sort_order(&self) -> usize
pub fn sort_order(&self) -> usize
pub fn value_expr(&self) -> &str
pub fn value_expr(&self) -> &str
Get the optional value expression evaluated when the event list is amortization or balanced.
Return
- See description.
pub fn value_expr_balance(&self) -> bool
pub fn value_expr_balance(&self) -> bool
Get the expression is evalulated when balanced, otherwise when amortization.
Return
- See description.
pub fn periods_expr(&self) -> &str
pub fn periods_expr(&self) -> &str
Get the optional periods expression evaluated when the event list is amortization.
Return
- See description.
pub fn skip_mask_len(&self) -> usize
pub fn skip_mask_len(&self) -> usize
Get the optional length of the periods to skip when the event list is amortization.
Return
- See description.
pub fn frequency(&self) -> FrequencyType
pub fn frequency(&self) -> FrequencyType
pub fn elem_extension(&self) -> &ElemExtension
pub fn elem_extension(&self) -> &ElemExtension
pub fn elem_extension_mut(&mut self) -> &mut ElemExtension
pub fn elem_extension_mut(&mut self) -> &mut ElemExtension
pub fn list_parameter(&self) -> Option<&ListParameter>
pub fn list_parameter(&self) -> Option<&ListParameter>
pub fn list_parameter_mut(&mut self) -> Option<&mut ListParameter>
pub fn list_parameter_mut(&mut self) -> Option<&mut ListParameter>
pub fn list_descriptor(&self) -> Option<&ListDescriptor>
pub fn list_descriptor(&self) -> Option<&ListDescriptor>
pub fn event_name(&self) -> &str
pub fn event_name(&self) -> &str
pub fn get_element_by_date(&self, date_param: usize, sort_param: usize) -> bool
pub fn get_element_by_date(&self, date_param: usize, sort_param: usize) -> bool
pub fn get_element_by_name(
&self,
name_param: &str,
is_select_param: bool
) -> bool
pub fn get_element_by_name(
&self,
name_param: &str,
is_select_param: bool
) -> bool
pub fn get_element_by_stat_name(
&self,
stat_name_param: &str,
is_select_param: bool
) -> bool
pub fn get_element_by_stat_name(
&self,
stat_name_param: &str,
is_select_param: bool
) -> bool
pub fn get_element_by_type(
&self,
extension_type_param: ExtensionType,
iteration_param: usize
) -> bool
pub fn get_element_by_type(
&self,
extension_type_param: ExtensionType,
iteration_param: usize
) -> bool
pub fn set_event_type(&mut self, event_type_param: &str) -> bool
pub fn set_event_type(&mut self, event_type_param: &str) -> bool
pub fn set_event_date(&mut self, event_date_param: usize) -> bool
pub fn set_event_date(&mut self, event_date_param: usize) -> bool
pub fn set_date_result(&self, event_date_param: usize) -> bool
pub fn set_date_result(&self, event_date_param: usize) -> bool
pub fn set_date_expr(&mut self, date_expr_param: &str) -> bool
pub fn set_date_expr(&mut self, date_expr_param: &str) -> bool
pub fn set_sort_order(&mut self, sort_order_param: usize) -> bool
pub fn set_sort_order(&mut self, sort_order_param: usize) -> bool
pub fn set_value_result(&self, value_param: Decimal) -> bool
pub fn set_value_result(&self, value_param: Decimal) -> bool
pub fn set_value_expr(&mut self, value_expr_param: &str) -> bool
pub fn set_value_expr(&mut self, value_expr_param: &str) -> bool
pub fn set_value_expr_result(&mut self, value_expr_param: &str) -> bool
pub fn set_value_expr_result(&mut self, value_expr_param: &str) -> bool
pub fn set_value_expr_balance(&mut self, value_expr_balance_param: bool) -> bool
pub fn set_value_expr_balance(&mut self, value_expr_balance_param: bool) -> bool
pub fn set_periods(&self, periods_param: usize) -> bool
pub fn set_periods(&self, periods_param: usize) -> bool
pub fn set_periods_result(&self, periods_param: usize) -> bool
pub fn set_periods_result(&self, periods_param: usize) -> bool
pub fn set_periods_expr(&mut self, periods_expr_param: &str) -> bool
pub fn set_periods_expr(&mut self, periods_expr_param: &str) -> bool
pub fn set_periods_expr_result(&mut self, periods_expr_param: &str) -> bool
pub fn set_periods_expr_result(&mut self, periods_expr_param: &str) -> bool
pub fn set_skip_mask(
&self,
skip_mask_len_param: usize,
skip_mask_param: u128
) -> bool
pub fn set_skip_mask(
&self,
skip_mask_len_param: usize,
skip_mask_param: u128
) -> bool
pub fn set_intervals(&mut self, intervals_param: usize) -> bool
pub fn set_intervals(&mut self, intervals_param: usize) -> bool
pub fn set_frequency(&mut self, frequency_param: FrequencyType) -> bool
pub fn set_frequency(&mut self, frequency_param: FrequencyType) -> bool
pub fn set_frequency_result(&mut self, frequency_param: FrequencyType) -> bool
pub fn set_frequency_result(&mut self, frequency_param: FrequencyType) -> bool
pub fn set_principal_change(
&mut self,
principal_change_param: ElemPrincipalChange
) -> bool
pub fn set_principal_change(
&mut self,
principal_change_param: ElemPrincipalChange
) -> bool
pub fn set_current_value(
&mut self,
current_value_param: ElemCurrentValue
) -> bool
pub fn set_current_value(
&mut self,
current_value_param: ElemCurrentValue
) -> bool
pub fn set_interest_change(
&mut self,
interest_change_param: ElemInterestChange
) -> bool
pub fn set_interest_change(
&mut self,
interest_change_param: ElemInterestChange
) -> bool
pub fn set_statistic_value(
&mut self,
statistic_value_param: ElemStatisticValue
) -> bool
pub fn set_statistic_value(
&mut self,
statistic_value_param: ElemStatisticValue
) -> bool
pub fn set_event_name(&mut self, event_name_param: &str) -> bool
pub fn set_event_name(&mut self, event_name_param: &str) -> bool
pub fn set_next_name(&mut self, next_name_param: &str) -> bool
pub fn set_next_name(&mut self, next_name_param: &str) -> bool
pub fn set_sort_on_add(&mut self, sort_on_add_param: bool) -> bool
pub fn set_sort_on_add(&mut self, sort_on_add_param: bool) -> bool
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).
pub fn set_sort_updated(&self, sort_updated_param: bool) -> bool
pub fn set_sort_updated(&self, sort_updated_param: bool) -> bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ListEvent
impl Send for ListEvent
impl !Sync for ListEvent
impl Unpin for ListEvent
impl UnwindSafe for ListEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more