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
17
// SPDX-License-Identifier: GPL-3.0-only

use serde::Serialize;

/// Query string parameters.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
pub struct RootNodesRequest {
    /// Levels to include: `1` = top-level groups only, `2` = groups and their children.
    pub depth: u32,
}

/// `depth = 2`, as the portal's meter picker requests.
impl Default for RootNodesRequest {
    fn default() -> Self {
        Self { depth: 2 }
    }
}