summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response/files.rs
diff options
context:
space:
mode:
authorJulius Michaelis <gitter@liftm.de>2020-07-09 20:41:11 +0900
committerJulius Michaelis <gitter@liftm.de>2020-07-09 20:52:33 +0900
commit7a386ef41c5666dc98e75b5cec60f9f48e4450ae (patch)
tree52ca465ebd24d537ccf7fc3ba782137c98263f40 /ipfs-api/src/response/files.rs
parenta162e2cbc3dd0898211056154af57e6ec58d7808 (diff)
add ipfs files stat --with-local
Diffstat (limited to 'ipfs-api/src/response/files.rs')
-rw-r--r--ipfs-api/src/response/files.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipfs-api/src/response/files.rs b/ipfs-api/src/response/files.rs
index 76dc4a1..f27be1f 100644
--- a/ipfs-api/src/response/files.rs
+++ b/ipfs-api/src/response/files.rs
@@ -50,6 +50,11 @@ pub struct FilesStatResponse {
#[serde(rename = "Type")]
pub typ: String,
+
+ #[serde(default)]
+ pub size_local: Option<u64>,
+ #[serde(default)]
+ pub local: Option<bool>,
}
pub type FilesWriteResponse = ();