hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}