treedx 0.2.11

Generic Rust SDK for TreeDX.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::TreeDxResult;
use async_trait::async_trait;
use serde_json::Value;

#[async_trait]
pub trait FederationPort: Send + Sync {
    async fn plan(&self, body: Value) -> TreeDxResult<Value>;
    async fn search(&self, body: Value) -> TreeDxResult<Value>;
    async fn query(&self, body: Value) -> TreeDxResult<Value>;
    async fn context_build(&self, body: Value) -> TreeDxResult<Value>;
    async fn graph_query(&self, body: Value) -> TreeDxResult<Value>;
}