siera_agent/modules/
webhook.rs

1use crate::error::Result;
2use async_trait::async_trait;
3
4/// Generic cloudagent schema module
5#[async_trait]
6pub trait WebhookModule {
7    /// Listen to all incoming webhook
8    async fn listen(&self, on_event: fn(serde_json::Value)) -> Result<()>;
9}