diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2017-10-10 23:27:33 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2017-10-10 23:27:33 -0400 |
commit | 710e86da290ec7f8944f85f89fbc02400bab25a5 (patch) | |
tree | 119700370a28b1d0d93154bd4d8b9d2c9b4514be /ipfs-api/src/request/dag.rs | |
parent | abc51e51407678a59087b76e91ce9019a858c04a (diff) |
add get dag
Diffstat (limited to 'ipfs-api/src/request/dag.rs')
-rw-r--r-- | ipfs-api/src/request/dag.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ipfs-api/src/request/dag.rs b/ipfs-api/src/request/dag.rs new file mode 100644 index 0000000..d30613a --- /dev/null +++ b/ipfs-api/src/request/dag.rs @@ -0,0 +1,15 @@ +use request::ApiRequest; + + +#[derive(Serialize)] +pub struct DagGet<'a> { + #[serde(rename = "arg")] + pub path: &'a str, +} + +impl<'a> ApiRequest for DagGet<'a> { + #[inline] + fn path() -> &'static str { + "/dag/get" + } +} |