summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/dag.rs
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2017-10-08 18:52:52 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2017-10-08 18:52:52 -0400
commitbad6995cdbfa60ee59107c0d358ba5b6c1738bb4 (patch)
tree2d101e246ca67140b852a83fb2adc5326a8b257e /ipfs-api/src/response/dag.rs
parentc9bd9da4be33baf689599af3d33574dd359c9493 (diff)
make multi crate project
Diffstat (limited to 'ipfs-api/src/response/dag.rs')
-rw-r--r--ipfs-api/src/response/dag.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipfs-api/src/response/dag.rs b/ipfs-api/src/response/dag.rs
new file mode 100644
index 0000000..01509ca
--- /dev/null
+++ b/ipfs-api/src/response/dag.rs
@@ -0,0 +1,8 @@
+pub type DagGetResponse = String;
+
+
+#[derive(Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct DagPutResponse {
+ pub cid: String,
+}