Skip to main content

ApprovalHandler

Trait ApprovalHandler 

Source
pub trait ApprovalHandler: Send + Sync {
    // Required method
    fn approve<'life0, 'async_trait>(
        &'life0 self,
        request: ApprovalRequest,
    ) -> Pin<Box<dyn Future<Output = AgentResult<ApprovalDecision>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn approve<'life0, 'async_trait>( &'life0 self, request: ApprovalRequest, ) -> Pin<Box<dyn Future<Output = AgentResult<ApprovalDecision>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§