1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct NodeStatusBatterystatusNode {
/// Error message, if the HTTP status returned from this node was not 200.
#[serde(rename = "error")]
pub error: Option<String>,
/// Node ID of the node reporting this information.
#[serde(rename = "id")]
pub id: Option<i32>,
/// The last battery test time for battery 1.
#[serde(rename = "last_test_time1")]
pub last_test_time1: Option<String>,
/// The last battery test time for battery 2.
#[serde(rename = "last_test_time2")]
pub last_test_time2: Option<String>,
/// Logical node number of the node reporting this information.
#[serde(rename = "lnn")]
pub lnn: Option<i32>,
/// The next checkup for battery 1.
#[serde(rename = "next_test_time1")]
pub next_test_time1: Option<String>,
/// The next checkup for battery 2.
#[serde(rename = "next_test_time2")]
pub next_test_time2: Option<String>,
/// Node has battery status.
#[serde(rename = "present")]
pub present: Option<bool>,
/// The result of the last battery test for battery 1.
#[serde(rename = "result1")]
pub result1: Option<String>,
/// The result of the last battery test for battery 2.
#[serde(rename = "result2")]
pub result2: Option<String>,
/// Status of the HTTP response from this node if not 200. If 200, this field does not appear.
#[serde(rename = "status")]
pub status: Option<i32>,
/// The status of battery 1.
#[serde(rename = "status1")]
pub status1: Option<String>,
/// The status of battery 2.
#[serde(rename = "status2")]
pub status2: Option<String>,
/// Node supports battery status.
#[serde(rename = "supported")]
pub supported: Option<bool>,
}