diff options
Diffstat (limited to 'ipfs-api/src/response/files.rs')
-rw-r--r-- | ipfs-api/src/response/files.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ipfs-api/src/response/files.rs b/ipfs-api/src/response/files.rs index 087c0ba..b745f9e 100644 --- a/ipfs-api/src/response/files.rs +++ b/ipfs-api/src/response/files.rs @@ -20,7 +20,8 @@ pub struct FilesEntry { // This is a protocol buffer enum type defined in // https://github.com/ipfs/go-ipfs/blob/master/unixfs/pb/unixfs.proto ... // So it might be some other type than u64, but certainly shouldn't be *bigger* than u64. - #[serde(rename = "Type")] pub typ: u64, + #[serde(rename = "Type")] + pub typ: u64, pub size: u64, pub hash: String, } @@ -28,7 +29,8 @@ pub struct FilesEntry { #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct FilesLsResponse { - #[serde(deserialize_with = "serde::deserialize_vec")] pub entries: Vec<FilesEntry>, + #[serde(deserialize_with = "serde::deserialize_vec")] + pub entries: Vec<FilesEntry>, } pub type FilesMkdirResponse = (); @@ -45,7 +47,8 @@ pub struct FilesStatResponse { pub cumulative_size: u64, pub blocks: u64, - #[serde(rename = "Type")] pub typ: String, + #[serde(rename = "Type")] + pub typ: String, } pub type FilesWriteResponse = (); |