diff options
Diffstat (limited to 'ipfs-api/src/response/dag.rs')
-rw-r--r-- | ipfs-api/src/response/dag.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ipfs-api/src/response/dag.rs b/ipfs-api/src/response/dag.rs index c53a282..ecfcaac 100644 --- a/ipfs-api/src/response/dag.rs +++ b/ipfs-api/src/response/dag.rs @@ -29,9 +29,15 @@ pub struct DagGetResponse { } #[derive(Debug, Deserialize)] -#[serde(rename_all = "PascalCase")] pub struct DagPutResponse { - pub cid: String, + #[serde(rename = "Cid")] + pub cid: Cid, +} + +#[derive(Debug, Deserialize)] +pub struct Cid { + #[serde(rename = "/")] + pub cid_string: String, } #[cfg(test)] |