Skip to main content

ApprovalHandler

Trait ApprovalHandler 

Source
pub trait ApprovalHandler: Send + Sync {
    // Required method
    fn request_approval<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        workflow: &'life1 str,
        step_id: &'life2 str,
        message: &'life3 str,
        preview: Option<&'life4 str>,
    ) -> Pin<Box<dyn Future<Output = ApprovalDecision> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}
Expand description

Trait for requesting approval from the user for gated steps.

Required Methods§

Source

fn request_approval<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, workflow: &'life1 str, step_id: &'life2 str, message: &'life3 str, preview: Option<&'life4 str>, ) -> Pin<Box<dyn Future<Output = ApprovalDecision> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§