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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BoardResp {
/// Account is the account the series narrows to, when one was named.
#[serde(rename = "account", skip_serializing_if = "Option::is_none")]
pub account: Option<String>,
/// Available reports whether the warehouse answered; false is an honest \"we have no data\", NOT zero usage.
#[serde(rename = "available", skip_serializing_if = "Option::is_none")]
pub available: Option<bool>,
/// Current is the live state of each lane — the dash headline.
#[serde(rename = "current", skip_serializing_if = "Option::is_none")]
pub current: Option<Vec<models::ReadingView>>,
/// From is when the resolved window opens, RFC 3339 UTC.
#[serde(rename = "from", skip_serializing_if = "Option::is_none")]
pub from: Option<String>,
/// Provider is the provider whose meter answered.
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
/// Range is the resolved period label.
#[serde(rename = "range", skip_serializing_if = "Option::is_none")]
pub range: Option<String>,
/// Scope is always \"user\": the caller's own linked accounts.
#[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
pub scope: Option<String>,
/// Source is always \"account\": the provider's own meter, not a Hanzo charge.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// To is where it closes, EXCLUSIVE, RFC 3339 UTC — the instant the read was served, so the window walks forward with the clock and two reads a minute apart do not cover the same period.
#[serde(rename = "to", skip_serializing_if = "Option::is_none")]
pub to: Option<String>,
/// Windows is every window instance in range, newest first.
#[serde(rename = "windows", skip_serializing_if = "Option::is_none")]
pub windows: Option<Vec<models::ReadingView>>,
}
impl BoardResp {
pub fn new() -> BoardResp {
BoardResp {
account: None,
available: None,
current: None,
from: None,
provider: None,
range: None,
scope: None,
source: None,
to: None,
windows: None,
}
}
}