diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2017-11-26 16:16:23 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2017-11-26 16:16:23 -0500 |
commit | 1b8dfb4097998e7b76355a0ee07cbaf9f7ea7193 (patch) | |
tree | 929b2759872244e25a9009510ec2f6d6a50cd686 /ipfs-api/src/response/filestore.rs | |
parent | a84e726ab0a3e70accbb84afed65ad584af67b0d (diff) |
add filestore calls
Diffstat (limited to 'ipfs-api/src/response/filestore.rs')
-rw-r--r-- | ipfs-api/src/response/filestore.rs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/ipfs-api/src/response/filestore.rs b/ipfs-api/src/response/filestore.rs index 06bf455..f2f62e5 100644 --- a/ipfs-api/src/response/filestore.rs +++ b/ipfs-api/src/response/filestore.rs @@ -18,7 +18,7 @@ pub struct FilestoreDupsResponse { #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] -pub struct FilestoreLsResponse { +pub struct FilestoreObject { pub status: i32, pub error_msg: String, pub key: String, @@ -28,13 +28,7 @@ pub struct FilestoreLsResponse { } -#[derive(Debug, Deserialize)] -#[serde(rename_all = "PascalCase")] -pub struct FilestoreVerifyResponse { - pub status: i32, - pub error_msg: String, - pub key: String, - pub file_path: String, - pub offset: u64, - pub size: u64, -} +pub type FilestoreLsResponse = FilestoreObject; + + +pub type FilestoreVerifyResponse = FilestoreObject; |