summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/src/response/version.rs')
-rw-r--r--ipfs-api/src/response/version.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/ipfs-api/src/response/version.rs b/ipfs-api/src/response/version.rs
index 57c6857..ec6837b 100644
--- a/ipfs-api/src/response/version.rs
+++ b/ipfs-api/src/response/version.rs
@@ -14,11 +14,16 @@ pub struct VersionResponse {
pub version: String,
pub commit: String,
pub repo: String,
- pub system: String,
- pub golang: String,
+
+ // Not declared in the IPFS interface spec.
+ pub system: Option<String>,
+
+ // Only for the Go implementation of IPFS.
+ pub golang: Option<String>,
}
#[cfg(test)]
mod tests {
deserialize_test!(v0_version_0, VersionResponse);
+ deserialize_test!(v0_version_1, VersionResponse);
}