diff options
author | SionoiS <SionoiS@users.noreply.github.com> | 2020-08-04 11:06:23 -0400 |
---|---|---|
committer | SionoiS <SionoiS@users.noreply.github.com> | 2020-08-04 11:06:23 -0400 |
commit | 6af9cfd1664edf4ad78277d4079700ec53f2206e (patch) | |
tree | 0a1b955dd690b83c883f3f42476774b003ddade2 /ipfs-api/src/response/config.rs | |
parent | 8c999d104f403b34d9d9b8a63d1ed41c4aa871ee (diff) |
Config API
Diffstat (limited to 'ipfs-api/src/response/config.rs')
-rw-r--r-- | ipfs-api/src/response/config.rs | 10 |
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 = (); |