summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/id.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/id.rs')
-rw-r--r--ipfs-api/src/response/id.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/ipfs-api/src/response/id.rs b/ipfs-api/src/response/id.rs
index 72a0569..4aca2f6 100644
--- a/ipfs-api/src/response/id.rs
+++ b/ipfs-api/src/response/id.rs
@@ -8,23 +8,19 @@
use response::serde;
-
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct IdResponse {
- #[serde(rename = "ID")]
- pub id: String,
+ #[serde(rename = "ID")] pub id: String,
pub public_key: String,
- #[serde(deserialize_with = "serde::deserialize_vec")]
- pub addresses: Vec<String>,
+ #[serde(deserialize_with = "serde::deserialize_vec")] pub addresses: Vec<String>,
pub agent_version: String,
pub protocol_version: String,
}
-
#[cfg(test)]
mod tests {
deserialize_test!(v0_id_0, IdResponse);