ipfs_api_prelude/request/
stats.rs

1// Copyright 2017 rust-ipfs-api Developers
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7//
8
9use crate::request::ApiRequest;
10
11pub struct StatsBitswap;
12
13impl_skip_serialize!(StatsBitswap);
14
15impl ApiRequest for StatsBitswap {
16    const PATH: &'static str = "/stats/bitswap";
17}
18
19pub struct StatsBw;
20
21impl_skip_serialize!(StatsBw);
22
23impl ApiRequest for StatsBw {
24    const PATH: &'static str = "/stats/bw";
25}
26
27pub struct StatsRepo;
28
29impl_skip_serialize!(StatsRepo);
30
31impl ApiRequest for StatsRepo {
32    const PATH: &'static str = "/stats/repo";
33}