Struct amfnengine::core::elem_statistic_helper::ElemStatisticHelper[]

pub struct ElemStatisticHelper { /* fields omitted */ }

Implementations

impl ElemStatisticHelper

The statistic helper implementation.

pub fn new(
    name_param: &str,
    principal_decrease_param: Decimal,
    principal_increase_param: Decimal,
    interest_param: Decimal,
    sl_interest_param: Decimal,
    value_to_interest_param: Decimal,
    value_to_principal_param: Decimal,
    last_date_param: usize,
    elem_am_index_param: usize
) -> ElemStatisticHelper

Create a new statistic helper.

Arguments

  • name_param - Statistic helper name.
  • principal_decrease_param - Principal decrease.
  • principal_increase_param - Principal increase.
  • interest_param - Interest parameter.
  • sl_interest_param - Straight line interest.
  • value_to_interest_param - Value to interest.
  • value_to_principal_param - Value to principal.
  • last_date_param - Last date.
  • elem_am_index_param - Amortization element index.

Return

  • See description.

pub fn name(&self) -> &str

Get the name of the statistic helper.

Return

  • See description.

pub fn principal_decrease(&self) -> Decimal

Get the principal decrease of the statistic helper.

Return

  • See description.

pub fn principal_increase(&self) -> Decimal

Get the principal increase of the statistic helper.

Return

  • See description.

pub fn interest(&self) -> Decimal

Get the interest of the statistic helper.

Return

  • See description.

pub fn sl_interest(&self) -> Decimal

Get the straight line interest of the statistic helper.

Return

  • See description.

pub fn value_to_interest(&self) -> Decimal

Get the value to interest of the statistic helper.

Return

  • See description.

pub fn value_to_principal(&self) -> Decimal

Get the value to principal of the statistic helper.

Return

  • See description.

pub fn last_date(&self) -> usize

Get the last date of the statistic helper.

Return

  • See description.

pub fn elem_am_index(&self) -> usize

Get the element amortization index of the statistic helper.

Return

  • See description.

pub fn set_name(&mut self, name_param: &str)

Set the name of the statistic helper.

Arguments

  • name_param - See description.

pub fn set_principal_decrease(&mut self, principal_decrease_param: Decimal)

Set the principal decrease of the statistic helper.

Arguments

  • principal_decrease_param - See description.

pub fn set_principal_increase(&mut self, principal_increase_param: Decimal)

Set the principal increase of the statistic helper.

Arguments

  • principal_increase_param - See description.

pub fn set_interest(&mut self, interest_param: Decimal)

Set the interest of the statistic helper.

Arguments

  • interest_param - See description.

pub fn set_sl_interest(&mut self, sl_interest_param: Decimal)

Set the straight line interest of the statistic helper.

Arguments

  • sl_interest_param - See description.

pub fn set_value_to_interest(&mut self, value_to_interest_param: Decimal)

Set the value to interest of the statistic helper.

Arguments

  • value_to_interest_param - See description.

pub fn set_value_to_principal(&mut self, value_to_principal_param: Decimal)

Set the value to principal of the statistic helper.

Arguments

  • value_to_principal_param - See description.

pub fn set_last_date(&mut self, last_date_param: usize)

Set the last date of the statistic helper.

Arguments

  • last_date_param - See description.

pub fn set_elem_am_index(&mut self, elem_am_index_param: usize)

Set the element amortization index of the statistic helper.

Arguments

  • elem_am_index_param - See description.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.