summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/config.rs
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2020-09-04 10:16:16 -0400
committerGitHub <noreply@github.com>2020-09-04 10:16:16 -0400
commitcbf189810f8a918b02536c792e490dec71d9eb5c (patch)
treea8cb09bba913a190b7b469d49b1603650bb6143e /ipfs-api/src/response/config.rs
parent8c999d104f403b34d9d9b8a63d1ed41c4aa871ee (diff)
parent2dd4058bf8002401f8e3ecd6e555883cea709bfd (diff)
Merge pull request #59 from SionoiS/config
Config API
Diffstat (limited to 'ipfs-api/src/response/config.rs')
-rw-r--r--ipfs-api/src/response/config.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ipfs-api/src/response/config.rs b/ipfs-api/src/response/config.rs
index 81e8caf..0bacf98 100644
--- a/ipfs-api/src/response/config.rs
+++ b/ipfs-api/src/response/config.rs
@@ -6,6 +6,16 @@
// copied, modified, or distributed except according to those terms.
//
+use crate::serde::Deserialize;
+
+#[derive(Debug, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct ConfigResponse {
+ pub key: String,
+
+ pub value: serde_json::value::Value,
+}
+
pub type ConfigEditResponse = ();
pub type ConfigReplaceResponse = ();