[−][src]Trait doublecount::Action
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>
&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.
Implementors
impl Action for BalanceAssertion
[src]
fn date(&self) -> NaiveDate
[src]
fn perform(
&self,
program_state: &mut ProgramState
) -> Result<(), AccountingError>
[src]
&self,
program_state: &mut ProgramState
) -> Result<(), AccountingError>
fn action_type(&self) -> ActionType
[src]
impl Action for EditAccountStatus
[src]
fn date(&self) -> NaiveDate
[src]
fn perform(
&self,
program_state: &mut ProgramState
) -> Result<(), AccountingError>
[src]
&self,
program_state: &mut ProgramState
) -> Result<(), AccountingError>
fn action_type(&self) -> ActionType
[src]
impl Action for Transaction
[src]
fn date(&self) -> NaiveDate
[src]
fn perform(
&self,
program_state: &mut ProgramState
) -> Result<(), AccountingError>
[src]
&self,
program_state: &mut ProgramState
) -> Result<(), AccountingError>