summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/dag.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/dag.rs')
-rw-r--r--ipfs-api/src/response/dag.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipfs-api/src/response/dag.rs b/ipfs-api/src/response/dag.rs
index 3f801da..3899443 100644
--- a/ipfs-api/src/response/dag.rs
+++ b/ipfs-api/src/response/dag.rs
@@ -15,14 +15,16 @@ pub struct DagIpfsHeader {
pub name: String,
pub size: u64,
- #[serde(deserialize_with = "serde::deserialize_hashmap")] pub cid: HashMap<String, String>,
+ #[serde(deserialize_with = "serde::deserialize_hashmap")]
+ pub cid: HashMap<String, String>,
}
#[derive(Debug, Deserialize)]
pub struct DagGetResponse {
pub data: Option<String>,
- #[serde(deserialize_with = "serde::deserialize_vec")] pub links: Vec<DagIpfsHeader>,
+ #[serde(deserialize_with = "serde::deserialize_vec")]
+ pub links: Vec<DagIpfsHeader>,
}
#[derive(Debug, Deserialize)]