diff options
Diffstat (limited to 'ipfs-api/src/response/file.rs')
-rw-r--r-- | ipfs-api/src/response/file.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ipfs-api/src/response/file.rs b/ipfs-api/src/response/file.rs index 7623135..3b670f7 100644 --- a/ipfs-api/src/response/file.rs +++ b/ipfs-api/src/response/file.rs @@ -9,21 +9,17 @@ use response::{serde, IpfsHeader}; use std::collections::HashMap; - #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct IpfsDetailedFile { pub hash: String, pub size: u64, - #[serde(rename = "Type")] - pub typ: String, + #[serde(rename = "Type")] pub typ: String, - #[serde(default)] - pub links: Vec<IpfsHeader>, + #[serde(default)] pub links: Vec<IpfsHeader>, } - #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct FileLsResponse { @@ -34,7 +30,6 @@ pub struct FileLsResponse { pub objects: HashMap<String, IpfsDetailedFile>, } - #[cfg(test)] mod tests { deserialize_test!(v0_file_ls_0, FileLsResponse); |