/*
* 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 Recharge {
/// Charged is how many of them were actually charged. It is at most Orgs, and the difference is orgs whose balance was already above their threshold.
#[serde(rename = "charged", skip_serializing_if = "Option::is_none")]
pub charged: Option<i32>,
/// Orgs is how many orgs the sweep considered — every org with auto-recharge armed, whether or not it needed charging.
#[serde(rename = "orgs", skip_serializing_if = "Option::is_none")]
pub orgs: Option<i32>,
/// Results is one row per org considered, so a sweep that charged nobody is still explainable. Never null.
#[serde(rename = "results", skip_serializing_if = "Option::is_none")]
pub results: Option<Vec<models::Recharged>>,
}
impl Recharge {
pub fn new() -> Recharge {
Recharge {
charged: None,
orgs: None,
results: None,
}
}
}