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 TrialBalance {
    /// Balanced is the proof this report exists to give: whether total debits equal total credits. It is computed from the rows above, never assumed, and false means the ledger itself is broken rather than that the report is wrong.
    #[serde(rename = "balanced", skip_serializing_if = "Option::is_none")]
    pub balanced: Option<bool>,
    /// From is the posting time the window opens at, as it was asked for. Absent means the report runs from the beginning of the ledger.
    #[serde(rename = "from", skip_serializing_if = "Option::is_none")]
    pub from: Option<String>,
    /// Rows are the accounts that MOVED in one of the windows. An account that never moved is omitted rather than listed at zero, so this is shorter than the chart.
    #[serde(rename = "rows", skip_serializing_if = "Option::is_none")]
    pub rows: Option<Vec<models::TrialBalanceRow>>,
    /// To is the posting time the window closes at, inclusive. Absent means \"up to now\" — every posting the ledger holds.
    #[serde(rename = "to", skip_serializing_if = "Option::is_none")]
    pub to: Option<String>,
    /// TotalCredit is the sum of every row's closing credit column, in cents.
    #[serde(rename = "totalCredit", skip_serializing_if = "Option::is_none")]
    pub total_credit: Option<i32>,
    /// TotalDebit is the sum of every row's CLOSING debit column, in cents.
    #[serde(rename = "totalDebit", skip_serializing_if = "Option::is_none")]
    pub total_debit: Option<i32>,
}

impl TrialBalance {
    pub fn new() -> TrialBalance {
        TrialBalance {
            balanced: None,
            from: None,
            rows: None,
            to: None,
            total_credit: None,
            total_debit: None,
        }
    }
}