summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/ls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/ls.rs')
-rw-r--r--ipfs-api/src/response/ls.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/ipfs-api/src/response/ls.rs b/ipfs-api/src/response/ls.rs
index 8508a37..6a30fb1 100644
--- a/ipfs-api/src/response/ls.rs
+++ b/ipfs-api/src/response/ls.rs
@@ -13,7 +13,8 @@ use response::serde;
pub struct IpfsFile {
pub hash: String,
- #[serde(deserialize_with = "serde::deserialize_vec")] pub links: Vec<IpfsFileHeader>,
+ #[serde(deserialize_with = "serde::deserialize_vec")]
+ pub links: Vec<IpfsFileHeader>,
}
#[derive(Deserialize)]
@@ -23,13 +24,15 @@ pub struct IpfsFileHeader {
pub hash: String,
pub size: u64,
- #[serde(rename = "Type")] pub typ: u32,
+ #[serde(rename = "Type")]
+ pub typ: u32,
}
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct LsResponse {
- #[serde(deserialize_with = "serde::deserialize_vec")] pub objects: Vec<IpfsFile>,
+ #[serde(deserialize_with = "serde::deserialize_vec")]
+ pub objects: Vec<IpfsFile>,
}
#[cfg(test)]