provident 0.3.1

Unofficial client for the Provident (MeterConnex) utility metering portal: meters, usage history, and reports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-3.0-only

//! `GET /api/internal/metertree/rootnodes?depth=<n>`: the user's top-level groups, and their
//! descendants down to `depth` levels.

mod req;
mod res;

pub use req::RootNodesRequest;
pub use res::RootNodesResponse;

/// Root-relative path, joined to the client base URL.
pub const PATH: &str = "api/internal/metertree/rootnodes";

/// HTTP method the endpoint accepts.
pub const METHOD: reqwest::Method = reqwest::Method::GET;