summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/commands.rs')
-rw-r--r--ipfs-api/src/response/commands.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/ipfs-api/src/response/commands.rs b/ipfs-api/src/response/commands.rs
index bbdeaaa..261d0c5 100644
--- a/ipfs-api/src/response/commands.rs
+++ b/ipfs-api/src/response/commands.rs
@@ -8,28 +8,22 @@
use response::serde;
-
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct CommandsResponseOptions {
- #[serde(deserialize_with = "serde::deserialize_vec")]
- pub names: Vec<String>,
+ #[serde(deserialize_with = "serde::deserialize_vec")] pub names: Vec<String>,
}
-
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct CommandsResponse {
pub name: String,
- #[serde(deserialize_with = "serde::deserialize_vec")]
- pub subcommands: Vec<CommandsResponse>,
+ #[serde(deserialize_with = "serde::deserialize_vec")] pub subcommands: Vec<CommandsResponse>,
- #[serde(deserialize_with = "serde::deserialize_vec")]
- pub options: Vec<CommandsResponseOptions>,
+ #[serde(deserialize_with = "serde::deserialize_vec")] pub options: Vec<CommandsResponseOptions>,
}
-
#[cfg(test)]
mod tests {
deserialize_test!(v0_commands_0, CommandsResponse);