ipcs_apidefs/
lib.rs

1use serde::{Deserialize, Serialize};
2
3
4/// Request for executing a method
5#[derive(Debug, Serialize, Deserialize)]
6pub struct ExecReq {
7    /// Method being executed in. a base58 multihash of IPFS object
8    pub method: String,
9    /// Arguments passed to method. base58 hashes of IPFS objects
10    pub args: Vec<String>,
11}
12
13/// Response provided when succesfully executing a function
14#[derive(Debug, Serialize, Deserialize)]
15pub struct ExecResp {
16    /// base58 multihash describing IPFS object in which the resulting data are stored
17    pub hash: String,
18}