neptune-rpc-api 0.14.0

Neptune JSON-RPC API contract: the RpcApi trait and its data-transfer model types
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;
use serde_json::Value;

use crate::model::json::JsonResult;

#[async_trait]
pub trait Transport: Send + Sync {
    async fn call(&self, method: &str, params: Value) -> JsonResult<Value>;
}