[][src]Trait doublecount::Action

pub trait Action: Display + Debug {
    fn date(&self) -> NaiveDate;
fn perform(
        &self,
        program_state: &mut ProgramState
    ) -> Result<(), AccountingError>;
fn action_type(&self) -> ActionType; }

Represents an action which can modify ProgramState.

Required methods

fn date(&self) -> NaiveDate

The date/time (in the account history) that the action was performed.

fn perform(
    &self,
    program_state: &mut ProgramState
) -> Result<(), AccountingError>

Perform the action to mutate the ProgramState.

fn action_type(&self) -> ActionType

What type of action is being performed.

Loading content...

Implementors

impl Action for BalanceAssertion[src]

impl Action for EditAccountStatus[src]

impl Action for Transaction[src]

Loading content...