Trait WebhookModule

Source
pub trait WebhookModule {
    // Required method
    fn listen<'life0, 'async_trait>(
        &'life0 self,
        on_event: fn(Value),
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generic cloudagent schema module

Required Methods§

Source

fn listen<'life0, 'async_trait>( &'life0 self, on_event: fn(Value), ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Listen to all incoming webhook

Implementors§