siera-agent 0.2.0

Structures and traits related to an Aries agent.
Documentation
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<()>;
}