summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2017-11-03 00:01:21 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2017-11-03 00:01:21 -0400
commitc28e62d54e1794e55688cb6ad81ea48b62e202d1 (patch)
tree99b02521c597cbad10dfaf32c54f5453d7353b21 /ipfs-api/src/response
parentf6b594b9ada9396cebdd3d8d4cb37c86d6198301 (diff)
add new commands
Diffstat (limited to 'ipfs-api/src/response')
-rw-r--r--ipfs-api/src/response/dht.rs3
-rw-r--r--ipfs-api/src/response/id.rs2
-rw-r--r--ipfs-api/src/response/key.rs4
-rw-r--r--ipfs-api/src/response/log.rs4
4 files changed, 8 insertions, 5 deletions
diff --git a/ipfs-api/src/response/dht.rs b/ipfs-api/src/response/dht.rs
index c0b6d36..b8493e7 100644
--- a/ipfs-api/src/response/dht.rs
+++ b/ipfs-api/src/response/dht.rs
@@ -35,12 +35,15 @@ pub struct DhtMessage {
pub extra: String,
}
+
pub type DhtFindPeerResponse = DhtMessage;
pub type DhtFindProvsResponse = DhtMessage;
pub type DhtGetResponse = DhtMessage;
+pub type DhtProvideResponse = DhtMessage;
+
pub type DhtPutResponse = DhtMessage;
pub type DhtQueryResponse = DhtMessage;
diff --git a/ipfs-api/src/response/id.rs b/ipfs-api/src/response/id.rs
index 4271140..72a0569 100644
--- a/ipfs-api/src/response/id.rs
+++ b/ipfs-api/src/response/id.rs
@@ -9,7 +9,7 @@
use response::serde;
-#[derive(Deserialize)]
+#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct IdResponse {
#[serde(rename = "ID")]
diff --git a/ipfs-api/src/response/key.rs b/ipfs-api/src/response/key.rs
index 7059bc0..2eb7de7 100644
--- a/ipfs-api/src/response/key.rs
+++ b/ipfs-api/src/response/key.rs
@@ -9,7 +9,7 @@
use response::serde;
-#[derive(Deserialize)]
+#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct KeyGenResponse {
pub name: String,
@@ -17,7 +17,7 @@ pub struct KeyGenResponse {
}
-#[derive(Deserialize)]
+#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct KeyListResponse {
#[serde(deserialize_with = "serde::deserialize_vec")]
diff --git a/ipfs-api/src/response/log.rs b/ipfs-api/src/response/log.rs
index fce6fcf..643d341 100644
--- a/ipfs-api/src/response/log.rs
+++ b/ipfs-api/src/response/log.rs
@@ -9,14 +9,14 @@
use response::serde;
-#[derive(Deserialize)]
+#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct LogLevelResponse {
pub message: String,
}
-#[derive(Deserialize)]
+#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct LogLsResponse {
#[serde(deserialize_with = "serde::deserialize_vec")]