summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Heath <icefoxen@gmail.com>2017-12-11 13:30:53 -0500
committerSimon Heath <icefoxen@gmail.com>2017-12-11 13:30:53 -0500
commit45077f90db50fbcb4d13e94b2ee336bf06222b88 (patch)
treea8126aaa8e6ef259b6551ac08182bfb9602ca932
parentc58f396845ee421fc818ed8999103b241b495f1c (diff)
Uppercased path->PATH in constants.
-rw-r--r--ipfs-api/src/client.rs2
-rw-r--r--ipfs-api/src/request/add.rs2
-rw-r--r--ipfs-api/src/request/bitswap.rs8
-rw-r--r--ipfs-api/src/request/block.rs8
-rw-r--r--ipfs-api/src/request/bootstrap.rs6
-rw-r--r--ipfs-api/src/request/cat.rs2
-rw-r--r--ipfs-api/src/request/commands.rs2
-rw-r--r--ipfs-api/src/request/config.rs6
-rw-r--r--ipfs-api/src/request/dag.rs4
-rw-r--r--ipfs-api/src/request/dht.rs12
-rw-r--r--ipfs-api/src/request/diag.rs6
-rw-r--r--ipfs-api/src/request/dns.rs2
-rw-r--r--ipfs-api/src/request/file.rs2
-rw-r--r--ipfs-api/src/request/files.rs18
-rw-r--r--ipfs-api/src/request/filestore.rs6
-rw-r--r--ipfs-api/src/request/get.rs2
-rw-r--r--ipfs-api/src/request/id.rs2
-rw-r--r--ipfs-api/src/request/key.rs4
-rw-r--r--ipfs-api/src/request/log.rs6
-rw-r--r--ipfs-api/src/request/ls.rs2
-rw-r--r--ipfs-api/src/request/mod.rs2
-rw-r--r--ipfs-api/src/request/object.rs8
-rw-r--r--ipfs-api/src/request/pin.rs6
-rw-r--r--ipfs-api/src/request/ping.rs2
-rw-r--r--ipfs-api/src/request/pubsub.rs8
-rw-r--r--ipfs-api/src/request/refs.rs2
-rw-r--r--ipfs-api/src/request/stats.rs6
-rw-r--r--ipfs-api/src/request/swarm.rs4
-rw-r--r--ipfs-api/src/request/tar.rs4
-rw-r--r--ipfs-api/src/request/version.rs2
30 files changed, 73 insertions, 73 deletions
diff --git a/ipfs-api/src/client.rs b/ipfs-api/src/client.rs
index 4d6ceab..dee4a24 100644
--- a/ipfs-api/src/client.rs
+++ b/ipfs-api/src/client.rs
@@ -84,7 +84,7 @@ impl IpfsClient {
let url = format!(
"{}{}?{}",
self.base,
- Req::path,
+ Req::PATH,
::serde_urlencoded::to_string(req)?
);
diff --git a/ipfs-api/src/request/add.rs b/ipfs-api/src/request/add.rs
index cc4019c..f669864 100644
--- a/ipfs-api/src/request/add.rs
+++ b/ipfs-api/src/request/add.rs
@@ -14,5 +14,5 @@ pub struct Add;
impl_skip_serialize!(Add);
impl ApiRequest for Add {
- const path: &'static str = "/add";
+ const PATH: &'static str = "/add";
}
diff --git a/ipfs-api/src/request/bitswap.rs b/ipfs-api/src/request/bitswap.rs
index 6e711f8..b5a2e16 100644
--- a/ipfs-api/src/request/bitswap.rs
+++ b/ipfs-api/src/request/bitswap.rs
@@ -16,7 +16,7 @@ pub struct BitswapLedger<'a> {
}
impl<'a> ApiRequest for BitswapLedger<'a> {
- const path: &'static str = "/bitswap/ledger";
+ const PATH: &'static str = "/bitswap/ledger";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -25,7 +25,7 @@ pub struct BitswapStat;
impl_skip_serialize!(BitswapStat);
impl ApiRequest for BitswapStat {
- const path: &'static str = "/bitswap/stat";
+ const PATH: &'static str = "/bitswap/stat";
}
@@ -36,7 +36,7 @@ pub struct BitswapUnwant<'a> {
}
impl<'a> ApiRequest for BitswapUnwant<'a> {
- const path: &'static str = "/bitswap/stat";
+ const PATH: &'static str = "/bitswap/stat";
}
@@ -46,5 +46,5 @@ pub struct BitswapWantlist<'a> {
}
impl<'a> ApiRequest for BitswapWantlist<'a> {
- const path: &'static str = "/bitswap/wantlist";
+ const PATH: &'static str = "/bitswap/wantlist";
}
diff --git a/ipfs-api/src/request/block.rs b/ipfs-api/src/request/block.rs
index 799f2f4..5729317 100644
--- a/ipfs-api/src/request/block.rs
+++ b/ipfs-api/src/request/block.rs
@@ -16,7 +16,7 @@ pub struct BlockGet<'a> {
}
impl<'a> ApiRequest for BlockGet<'a> {
- const path: &'static str = "/block/get";
+ const PATH: &'static str = "/block/get";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -25,7 +25,7 @@ pub struct BlockPut;
impl_skip_serialize!(BlockPut);
impl ApiRequest for BlockPut {
- const path: &'static str = "/block/put";
+ const PATH: &'static str = "/block/put";
}
@@ -36,7 +36,7 @@ pub struct BlockRm<'a> {
}
impl<'a> ApiRequest for BlockRm<'a> {
- const path: &'static str = "/block/rm";
+ const PATH: &'static str = "/block/rm";
}
@@ -47,5 +47,5 @@ pub struct BlockStat<'a> {
}
impl<'a> ApiRequest for BlockStat<'a> {
- const path: &'static str = "/block/stat";
+ const PATH: &'static str = "/block/stat";
}
diff --git a/ipfs-api/src/request/bootstrap.rs b/ipfs-api/src/request/bootstrap.rs
index 9ffd482..def3664 100644
--- a/ipfs-api/src/request/bootstrap.rs
+++ b/ipfs-api/src/request/bootstrap.rs
@@ -14,7 +14,7 @@ pub struct BootstrapAddDefault;
impl_skip_serialize!(BootstrapAddDefault);
impl ApiRequest for BootstrapAddDefault {
- const path: &'static str = "/bootstrap/add/default";
+ const PATH: &'static str = "/bootstrap/add/default";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -23,7 +23,7 @@ pub struct BootstrapList;
impl_skip_serialize!(BootstrapList);
impl ApiRequest for BootstrapList {
- const path: &'static str = "/bootstrap/list";
+ const PATH: &'static str = "/bootstrap/list";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -32,5 +32,5 @@ pub struct BootstrapRmAll;
impl_skip_serialize!(BootstrapRmAll);
impl ApiRequest for BootstrapRmAll {
- const path: &'static str = "/bootstrap/rm/all";
+ const PATH: &'static str = "/bootstrap/rm/all";
}
diff --git a/ipfs-api/src/request/cat.rs b/ipfs-api/src/request/cat.rs
index 5bae654..e288f7f 100644
--- a/ipfs-api/src/request/cat.rs
+++ b/ipfs-api/src/request/cat.rs
@@ -16,5 +16,5 @@ pub struct Cat<'a> {
}
impl<'a> ApiRequest for Cat<'a> {
- const path: &'static str = "/cat";
+ const PATH: &'static str = "/cat";
}
diff --git a/ipfs-api/src/request/commands.rs b/ipfs-api/src/request/commands.rs
index 8efb683..132959e 100644
--- a/ipfs-api/src/request/commands.rs
+++ b/ipfs-api/src/request/commands.rs
@@ -14,5 +14,5 @@ pub struct Commands;
impl_skip_serialize!(Commands);
impl ApiRequest for Commands {
- const path: &'static str = "/commands";
+ const PATH: &'static str = "/commands";
}
diff --git a/ipfs-api/src/request/config.rs b/ipfs-api/src/request/config.rs
index 600db3a..2af3159 100644
--- a/ipfs-api/src/request/config.rs
+++ b/ipfs-api/src/request/config.rs
@@ -14,7 +14,7 @@ pub struct ConfigEdit;
impl_skip_serialize!(ConfigEdit);
impl ApiRequest for ConfigEdit {
- const path: &'static str = "/config/edit";
+ const PATH: &'static str = "/config/edit";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -23,7 +23,7 @@ pub struct ConfigReplace;
impl_skip_serialize!(ConfigReplace);
impl ApiRequest for ConfigReplace {
- const path: &'static str = "/config/replace";
+ const PATH: &'static str = "/config/replace";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -32,5 +32,5 @@ pub struct ConfigShow;
impl_skip_serialize!(ConfigShow);
impl ApiRequest for ConfigShow {
- const path: &'static str = "/config/show";
+ const PATH: &'static str = "/config/show";
}
diff --git a/ipfs-api/src/request/dag.rs b/ipfs-api/src/request/dag.rs
index b2d03ff..4b17b82 100644
--- a/ipfs-api/src/request/dag.rs
+++ b/ipfs-api/src/request/dag.rs
@@ -16,7 +16,7 @@ pub struct DagGet<'a> {
}
impl<'a> ApiRequest for DagGet<'a> {
- const path: &'static str = "/dag/get";
+ const PATH: &'static str = "/dag/get";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -25,5 +25,5 @@ pub struct DagPut;
impl_skip_serialize!(DagPut);
impl ApiRequest for DagPut {
- const path: &'static str = "/dag/put";
+ const PATH: &'static str = "/dag/put";
}
diff --git a/ipfs-api/src/request/dht.rs b/ipfs-api/src/request/dht.rs
index ec3239a..7630df3 100644
--- a/ipfs-api/src/request/dht.rs
+++ b/ipfs-api/src/request/dht.rs
@@ -16,7 +16,7 @@ pub struct DhtFindPeer<'a> {
}
impl<'a> ApiRequest for DhtFindPeer<'a> {
- const path: &'static str = "/dht/findpeer";
+ const PATH: &'static str = "/dht/findpeer";
}
@@ -27,7 +27,7 @@ pub struct DhtFindProvs<'a> {
}
impl<'a> ApiRequest for DhtFindProvs<'a> {
- const path: &'static str = "/dht/findprovs";
+ const PATH: &'static str = "/dht/findprovs";
}
@@ -38,7 +38,7 @@ pub struct DhtGet<'a> {
}
impl<'a> ApiRequest for DhtGet<'a> {
- const path: &'static str = "/dht/get";
+ const PATH: &'static str = "/dht/get";
}
@@ -49,7 +49,7 @@ pub struct DhtProvide<'a> {
}
impl<'a> ApiRequest for DhtProvide<'a> {
- const path: &'static str = "/dht/provide";
+ const PATH: &'static str = "/dht/provide";
}
@@ -63,7 +63,7 @@ pub struct DhtPut<'a> {
}
impl<'a> ApiRequest for DhtPut<'a> {
- const path: &'static str = "/dht/put";
+ const PATH: &'static str = "/dht/put";
}
@@ -74,5 +74,5 @@ pub struct DhtQuery<'a> {
}
impl<'a> ApiRequest for DhtQuery<'a> {
- const path: &'static str = "/dht/query";
+ const PATH: &'static str = "/dht/query";
}
diff --git a/ipfs-api/src/request/diag.rs b/ipfs-api/src/request/diag.rs
index 1ccbdf1..5ef9108 100644
--- a/ipfs-api/src/request/diag.rs
+++ b/ipfs-api/src/request/diag.rs
@@ -14,7 +14,7 @@ pub struct DiagCmdsClear;
impl_skip_serialize!(DiagCmdsClear);
impl ApiRequest for DiagCmdsClear {
- const path: &'static str = "/diag/cmds/clear";
+ const PATH: &'static str = "/diag/cmds/clear";
}
@@ -25,7 +25,7 @@ pub struct DiagCmdsSetTime<'a> {
}
impl<'a> ApiRequest for DiagCmdsSetTime<'a> {
- const path: &'static str = "/diag/cmds/set-time";
+ const PATH: &'static str = "/diag/cmds/set-time";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -34,5 +34,5 @@ pub struct DiagSys;
impl_skip_serialize!(DiagSys);
impl ApiRequest for DiagSys {
- const path: &'static str = "/diag/sys";
+ const PATH: &'static str = "/diag/sys";
}
diff --git a/ipfs-api/src/request/dns.rs b/ipfs-api/src/request/dns.rs
index 178bf36..a168967 100644
--- a/ipfs-api/src/request/dns.rs
+++ b/ipfs-api/src/request/dns.rs
@@ -18,5 +18,5 @@ pub struct Dns<'a> {
}
impl<'a> ApiRequest for Dns<'a> {
- const path: &'static str = "/dns";
+ const PATH: &'static str = "/dns";
}
diff --git a/ipfs-api/src/request/file.rs b/ipfs-api/src/request/file.rs
index 8febb51..57de125 100644
--- a/ipfs-api/src/request/file.rs
+++ b/ipfs-api/src/request/file.rs
@@ -16,5 +16,5 @@ pub struct FileLs<'a> {
}
impl<'a> ApiRequest for FileLs<'a> {
- const path: &'static str = "/file/ls";
+ const PATH: &'static str = "/file/ls";
}
diff --git a/ipfs-api/src/request/files.rs b/ipfs-api/src/request/files.rs
index 67f976d..4f7d51f 100644
--- a/ipfs-api/src/request/files.rs
+++ b/ipfs-api/src/request/files.rs
@@ -19,7 +19,7 @@ pub struct FilesCp<'a> {
}
impl<'a> ApiRequest for FilesCp<'a> {
- const path: &'static str = "/files/cp";
+ const PATH: &'static str = "/files/cp";
}
@@ -30,7 +30,7 @@ pub struct FilesFlush<'a> {
}
impl<'a> ApiRequest for FilesFlush<'a> {
- const path: &'static str = "/files/flush";
+ const PATH: &'static str = "/files/flush";
}
@@ -41,7 +41,7 @@ pub struct FilesLs<'a> {
}
impl<'a> ApiRequest for FilesLs<'a> {
- const path: &'static str = "/files/ls";
+ const PATH: &'static str = "/files/ls";
}
@@ -54,7 +54,7 @@ pub struct FilesMkdir<'a> {
}
impl<'a> ApiRequest for FilesMkdir<'a> {
- const path: &'static str = "/files/mkdir";
+ const PATH: &'static str = "/files/mkdir";
}
@@ -68,7 +68,7 @@ pub struct FilesMv<'a> {
}
impl<'a> ApiRequest for FilesMv<'a> {
- const path: &'static str = "/files/mv";
+ const PATH: &'static str = "/files/mv";
}
@@ -79,7 +79,7 @@ pub struct FilesRead<'a> {
}
impl<'a> ApiRequest for FilesRead<'a> {
- const path: &'static str = "/files/read";
+ const PATH: &'static str = "/files/read";
}
@@ -92,7 +92,7 @@ pub struct FilesRm<'a> {
}
impl<'a> ApiRequest for FilesRm<'a> {
- const path: &'static str = "/files/rm";
+ const PATH: &'static str = "/files/rm";
}
@@ -103,7 +103,7 @@ pub struct FilesStat<'a> {
}
impl<'a> ApiRequest for FilesStat<'a> {
- const path: &'static str = "/files/stat";
+ const PATH: &'static str = "/files/stat";
}
@@ -118,5 +118,5 @@ pub struct FilesWrite<'a> {
}
impl<'a> ApiRequest for FilesWrite<'a> {
- const path: &'static str = "/files/write";
+ const PATH: &'static str = "/files/write";
}
diff --git a/ipfs-api/src/request/filestore.rs b/ipfs-api/src/request/filestore.rs
index 2d9047b..d6b4530 100644
--- a/ipfs-api/src/request/filestore.rs
+++ b/ipfs-api/src/request/filestore.rs
@@ -14,7 +14,7 @@ pub struct FilestoreDups;
impl_skip_serialize!(FilestoreDups);
impl ApiRequest for FilestoreDups {
- const path: &'static str = "/filestore/dups";
+ const PATH: &'static str = "/filestore/dups";
}
@@ -25,7 +25,7 @@ pub struct FilestoreLs<'a> {
}
impl<'a> ApiRequest for FilestoreLs<'a> {
- const path: &'static str = "/filestore/ls";
+ const PATH: &'static str = "/filestore/ls";
}
@@ -36,5 +36,5 @@ pub struct FilestoreVerify<'a> {
}
impl<'a> ApiRequest for FilestoreVerify<'a> {
- const path: &'static str = "/filestore/verify";
+ const PATH: &'static str = "/filestore/verify";
}
diff --git a/ipfs-api/src/request/get.rs b/ipfs-api/src/request/get.rs
index 1f5e2e0..8c1b3c9 100644
--- a/ipfs-api/src/request/get.rs
+++ b/ipfs-api/src/request/get.rs
@@ -16,5 +16,5 @@ pub struct Get<'a> {
}
impl<'a> ApiRequest for Get<'a> {
- const path: &'static str = "/get";
+ const PATH: &'static str = "/get";
}
diff --git a/ipfs-api/src/request/id.rs b/ipfs-api/src/request/id.rs
index 9648787..f7fb1c6 100644
--- a/ipfs-api/src/request/id.rs
+++ b/ipfs-api/src/request/id.rs
@@ -16,5 +16,5 @@ pub struct Id<'a> {
}
impl<'a> ApiRequest for Id<'a> {
- const path: &'static str = "/id";
+ const PATH: &'static str = "/id";
}
diff --git a/ipfs-api/src/request/key.rs b/ipfs-api/src/request/key.rs
index 821fd0a..98601df 100644
--- a/ipfs-api/src/request/key.rs
+++ b/ipfs-api/src/request/key.rs
@@ -43,7 +43,7 @@ pub struct KeyGen<'a, 'b> {
}
impl<'a, 'b> ApiRequest for KeyGen<'a, 'b> {
- const path: &'static str = "/key/gen";
+ const PATH: &'static str = "/key/gen";
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -52,5 +52,5 @@ pub struct KeyList;
impl_skip_serialize!(KeyList);
impl ApiRequest for KeyList {
- const path: &'static str = "/key/list";
+ const PATH: &'static str = "/key/list";
}
diff --git a/ipfs-api/src/request/log.rs b/ipfs-api/src/request/log.rs
index ed90ec8..c2b8c73 100644
--- a/ipfs-api/src/request/log.rs
+++ b/ipfs-api/src/request/log.rs
@@ -68,7 +68,7 @@ pub struct LogLevel<'a> {
}
impl<'a> ApiRequest for LogLevel<'a> {
- const path: &'static str = "/log/level";
+ const PATH: &'static str = "/log/level";
}
@@ -78,7 +78,7 @@ pub struct LogLs;
impl_skip_serialize!(LogLs);
impl ApiRequest for LogLs {
- const path: &'static str = "/log/ls";
+ const PATH: &'static str = "/log/ls";
}
@@ -88,5 +88,5 @@ pub struct LogTail;
impl_skip_serialize!(LogTail);
impl ApiRequest for LogTail {
- const path: &'static str = "/log/tail";
+ const PATH: &'static str = "/log/tail";
}
diff --git a/ipfs-api/src/request/ls.rs b/ipfs-api/src/request/ls.rs
index 54bce37..a68dedd 100644
--- a/ipfs-api/src/request/ls.rs
+++ b/ipfs-api/src/request/ls.rs
@@ -16,7 +16,7 @@ pub struct Ls<'a> {
}
impl<'a> ApiRequest for Ls<'a> {
- const path: &'static str = "/ls";
+ const PATH: &'static str = "/ls";
}
diff --git a/ipfs-api/src/request/mod.rs b/ipfs-api/src/request/mod.rs
index 4030047..30705f8 100644
--- a/ipfs-api/src/request/mod.rs
+++ b/ipfs-api/src/request/mod.rs
@@ -107,5 +107,5 @@ pub trait ApiRequest {
///
/// All paths should begin with '/'.
///
- const path: &'static str;
+ const PATH: &'static str;
}
diff --git a/ipfs-api/src/request/object.rs b/ipfs-api/src/request/object.rs
index 616a9aa..604cf4b 100644
--- a/ipfs-api/src/request/object.rs
+++ b/ipfs-api/src/request/object.rs
@@ -19,7 +19,7 @@ pub struct ObjectDiff<'a> {
}
impl<'a> ApiRequest for ObjectDiff<'a> {
- const path: &'static str = "/object/diff";
+ const PATH: &'static str = "/object/diff";
}
@@ -30,7 +30,7 @@ pub struct ObjectGet<'a> {
}
impl<'a> ApiRequest for ObjectGet<'a> {
- const path: &'static str = "/object/get";
+ const PATH: &'static str = "/object/get";
}
@@ -41,7 +41,7 @@ pub struct ObjectLinks<'a> {
}
impl<'a> ApiRequest for ObjectLinks<'a> {
- const path: &'static str = "/object/links";
+ const PATH: &'static str = "/object/links";
}
@@ -52,7 +52,7 @@ pub struct ObjectStat<'a> {
}
impl<'a> ApiRequest for ObjectStat<'a> {
- const path: &'static str = "/object/stat";
+ const PATH: &'static str = "/object/stat";
}
diff --git a/ipfs-api/src/request/pin.rs b/ipfs-api/src/request/pin.rs
index f9ac6ef..d48f6a6 100644
--- a/ipfs-api/src/request/pin.rs
+++ b/ipfs-api/src/request/pin.rs
@@ -18,7 +18,7 @@ pub struct PinAdd<'a> {
}
impl<'a> ApiRequest for PinAdd<'a> {
- const path: &'static str = "/pin/add";
+ const PATH: &'static str = "/pin/add";
}
@@ -32,7 +32,7 @@ pub struct PinLs<'a> {
}
impl<'a> ApiRequest for PinLs<'a> {
- const path: &'static str = "/pin/ls";
+ const PATH: &'static str = "/pin/ls";
}
@@ -45,5 +45,5 @@ pub struct PinRm<'a> {
}
impl<'a> ApiRequest for PinRm<'a> {
- const path: &'static str = "/pin/rm";
+ const PATH: &'static str = "/pin/rm";
}
diff --git a/ipfs-api/src/request/ping.rs b/ipfs-api/src/request/ping.rs
index 201b3cd..e4047fc 100644
--- a/ipfs-api/src/request/ping.rs
+++ b/ipfs-api/src/request/ping.rs
@@ -17,5 +17,5 @@ pub struct Ping<'a, 'b> {
}
impl<'a, 'b> ApiRequest for Ping<'a, 'b> {
- const path: &'static str = "/ping";
+ const PATH: &'static str = "/ping";
}
diff --git a/ipfs-api/src/request/pubsub.rs b/ipfs-api/src/request/pubsub.rs
index fbf5c33..b6a9d2b 100644
--- a/ipfs-api/src/request/pubsub.rs
+++ b/ipfs-api/src/request/pubsub.rs
@@ -14,7 +14,7 @@ pub struct PubsubLs;
impl_skip_serialize!(PubsubLs);
impl ApiRequest for PubsubLs {
- const path: &'static str = "/pubsub/ls";
+ const PATH: &'static str = "/pubsub/ls";
}
@@ -25,7 +25,7 @@ pub struct PubsubPeers<'a> {
}
impl<'a> ApiRequest for PubsubPeers<'a> {
- const path: &'static str = "/pubsub/peers";
+ const PATH: &'static str = "/pubsub/peers";
}
@@ -39,7 +39,7 @@ pub struct PubsubPub<'a> {
}
impl<'a> ApiRequest for PubsubPub<'a> {
- const path: &'static str = "/pubsub/pub";
+ const PATH: &'static str = "/pubsub/pub";
}
@@ -52,5 +52,5 @@ pub struct PubsubSub<'a> {
}
impl<'a> ApiRequest for PubsubSub<'a> {
- const path: &'static str = "/pubsub/sub";
+ const PATH: &'static str = "/pubsub/sub";
}
diff --git a/ipfs-api/src/request/refs.rs b/ipfs-api/src/request/refs.rs
index 4fa8710..14ba9dd 100644
--- a/ipfs-api/src/request/refs.rs
+++ b/ipfs-api/src/request/refs.rs
@@ -14,5 +14,5 @@ pub struct RefsLocal;
impl_skip_serialize!(RefsLocal);
impl ApiRequest for RefsLocal {
- const path: &'static str = "/refs/local";
+ const PATH: &'static str = "/refs/local";
}
diff --git a/ipfs-api/src/request/stats.rs b/ipfs-api/src/request/stats.rs
index 603115c..f699447 100644
--- a/ipfs-api/src/request/stats.rs
+++ b/ipfs-api/src/request/stats.rs
@@ -14,7 +14,7 @@ pub struct StatsBitswap;
impl_skip_serialize!(StatsBitswap);
impl ApiRequest for StatsBitswap {
- const path: &'static str = "/stats/bitswap";
+ const PATH: &'static str = "/stats/bitswap";
}
#[derive(Deserialize, Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -23,7 +23,7 @@ pub struct StatsBw;
impl_skip_serialize!(StatsBw);
impl ApiRequest for StatsBw {
- const path: &'static str = "/stats/bw";
+ const PATH: &'static str = "/stats/bw";
}
#[derive(Deserialize, Debug, Copy, Clone, PartialEq, Eq, Hash)]
@@ -32,5 +32,5 @@ pub struct StatsRepo;
impl_skip_serialize!(StatsRepo);
impl ApiRequest for StatsRepo {
- const path: &'static str = "/stats/repo";
+ const PATH: &'static str = "/stats/repo";
}
diff --git a/ipfs-api/src/request/swarm.rs b/ipfs-api/src/request/swarm.rs
index 975282d..b6b131a 100644
--- a/ipfs-api/src/request/swarm.rs
+++ b/ipfs-api/src/request/swarm.rs
@@ -14,7 +14,7 @@ pub struct SwarmAddrsLocal;
impl_skip_serialize!(SwarmAddrsLocal);
impl ApiRequest for SwarmAddrsLocal {
- const path: &'static str = "/swarm/addrs/local";
+ const PATH: &'static str = "/swarm/addrs/local";
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
@@ -23,5 +23,5 @@ pub struct SwarmPeers;
impl_skip_serialize!(SwarmPeers);
impl ApiRequest for SwarmPeers {
- const path: &'static str = "/swarm/peers";
+ const PATH: &'static str = "/swarm/peers";
}
diff --git a/ipfs-api/src/request/tar.rs b/ipfs-api/src/request/tar.rs
index d582f12..86bba3d 100644
--- a/ipfs-api/src/request/tar.rs
+++ b/ipfs-api/src/request/tar.rs
@@ -14,7 +14,7 @@ pub struct TarAdd;
impl_skip_serialize!(TarAdd);
impl ApiRequest for TarAdd {
- const path: &'static str = "/tar/add";
+ const PATH: &'static str = "/tar/add";
}
@@ -25,5 +25,5 @@ pub struct TarCat<'a> {
}
impl<'a> ApiRequest for TarCat<'a> {
- const path: &'static str = "/tar/cat";
+ const PATH: &'static str = "/tar/cat";
}
diff --git a/ipfs-api/src/request/version.rs b/ipfs-api/src/request/version.rs
index 2c02209..4bc89d7 100644
--- a/ipfs-api/src/request/version.rs
+++ b/ipfs-api/src/request/version.rs
@@ -14,5 +14,5 @@ pub struct Version;
impl_skip_serialize!(Version);
impl ApiRequest for Version {
- const path: &'static str = "/version";
+ const PATH: &'static str = "/version";
}