feat: add examples

This commit is contained in:
2020-11-07 19:37:36 +08:00
parent c51d2bb576
commit 3321c4720d
7 changed files with 74 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
use serde::{ Serialize, Deserialize };
#[derive(Serialize, Deserialize)]
pub struct InvokeRequest {
hash: String,
method: String,
params: String, // JSON, empty: []
}
#[derive(Serialize, Deserialize)]
pub struct InvokeResponse {
request_id: String,
hash: String,
method: String,
result: String,
}