summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/pubsub.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/pubsub.rs')
-rw-r--r--ipfs-api/src/response/pubsub.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/ipfs-api/src/response/pubsub.rs b/ipfs-api/src/response/pubsub.rs
index 20621e1..1580e82 100644
--- a/ipfs-api/src/response/pubsub.rs
+++ b/ipfs-api/src/response/pubsub.rs
@@ -11,13 +11,15 @@ use response::serde;
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct PubsubLsResponse {
- #[serde(deserialize_with = "serde::deserialize_vec")] pub strings: Vec<String>,
+ #[serde(deserialize_with = "serde::deserialize_vec")]
+ pub strings: Vec<String>,
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct PubsubPeersResponse {
- #[serde(deserialize_with = "serde::deserialize_vec")] pub strings: Vec<String>,
+ #[serde(deserialize_with = "serde::deserialize_vec")]
+ pub strings: Vec<String>,
}
pub type PubsubPubResponse = ();
@@ -28,9 +30,11 @@ pub struct PubsubSubResponse {
pub data: Option<String>,
pub seqno: Option<String>,
- #[serde(rename = "topicIDs")] pub topic_ids: Option<Vec<String>>,
+ #[serde(rename = "topicIDs")]
+ pub topic_ids: Option<Vec<String>>,
- #[serde(rename = "XXX_unrecognized")] pub unrecognized: Option<Vec<u8>>,
+ #[serde(rename = "XXX_unrecognized")]
+ pub unrecognized: Option<Vec<u8>>,
}
#[cfg(test)]