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 TreasuryReport {
    /// lifetime revenue-share into the fund
    #[serde(rename = "accruedCents", skip_serializing_if = "Option::is_none")]
    pub accrued_cents: Option<i32>,
    /// program → lifetime paid
    #[serde(rename = "byProgramCents", skip_serializing_if = "Option::is_none")]
    pub by_program_cents: Option<std::collections::HashMap<String, i32>>,
    /// lifetime backed payouts out of the fund
    #[serde(rename = "paidCents", skip_serializing_if = "Option::is_none")]
    pub paid_cents: Option<i32>,
    /// current revenue-share policy
    #[serde(rename = "policy", skip_serializing_if = "Option::is_none")]
    pub policy: Option<Box<models::SharePolicy>>,
    /// fund:reserve balance (available now)
    #[serde(rename = "reserveCents", skip_serializing_if = "Option::is_none")]
    pub reserve_cents: Option<i32>,
    /// reserve > 0: at least some payout is backable
    #[serde(rename = "solventForPayout", skip_serializing_if = "Option::is_none")]
    pub solvent_for_payout: Option<bool>,
}

impl TreasuryReport {
    pub fn new() -> TreasuryReport {
        TreasuryReport {
            accrued_cents: None,
            by_program_cents: None,
            paid_cents: None,
            policy: None,
            reserve_cents: None,
            solvent_for_payout: None,
        }
    }
}