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