pub trait GLPostingStepHandler: Send + Sync {
// Required methods
fn handle_idempotency_check<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_validate<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_write_journal<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_write_journal_lines<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_write_ledger<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_update_account_balances<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_mark_posted<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_posted<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_rejected<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Step handler trait for GLPosting flow
Required Methods§
Sourcefn handle_idempotency_check<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_idempotency_check<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle idempotency_check step
Sourcefn handle_validate<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_validate<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle validate step
Sourcefn handle_write_journal<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_write_journal<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle write_journal step
Sourcefn handle_write_journal_lines<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_write_journal_lines<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle write_journal_lines step
Sourcefn handle_write_ledger<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_write_ledger<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle write_ledger step
Sourcefn handle_update_account_balances<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_update_account_balances<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle update_account_balances step
Sourcefn handle_mark_posted<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_mark_posted<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<GLPostingFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle mark_posted step
Sourcefn handle_posted<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_posted<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step posted
Sourcefn handle_rejected<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_rejected<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut GLPostingFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step rejected
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".