summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/repo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/repo.rs')
-rw-r--r--ipfs-api/src/response/repo.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/ipfs-api/src/response/repo.rs b/ipfs-api/src/response/repo.rs
index fb82936..9e31eb1 100644
--- a/ipfs-api/src/response/repo.rs
+++ b/ipfs-api/src/response/repo.rs
@@ -9,23 +9,19 @@
use response::serde;
use std::collections::HashMap;
-
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct RepoFsckResponse {
pub message: String,
}
-
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct RepoGcResponse {
- #[serde(deserialize_with = "serde::deserialize_hashmap")]
- pub key: HashMap<String, String>,
+ #[serde(deserialize_with = "serde::deserialize_hashmap")] pub key: HashMap<String, String>,
pub error: Option<String>,
}
-
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct RepoStatResponse {
@@ -35,7 +31,6 @@ pub struct RepoStatResponse {
pub version: String,
}
-
// Defined in go-ipfs:master core/commands/repo.go
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
@@ -45,14 +40,12 @@ pub struct RepoVerifyResponse {
pub progress: i32,
}
-
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct RepoVersionResponse {
pub version: String,
}
-
#[cfg(test)]
mod tests {
deserialize_test!(v0_repo_gc_0, RepoGcResponse);